From 17bbe6f4b25b33e760d7cfaba47360f1adcec163 Mon Sep 17 00:00:00 2001 From: ljf Date: Tue, 22 May 2018 20:06:51 +0200 Subject: [PATCH] [fix] Index error on description --- src/yunohost/log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/yunohost/log.py b/src/yunohost/log.py index c73269ba0..91d53541a 100644 --- a/src/yunohost/log.py +++ b/src/yunohost/log.py @@ -111,7 +111,8 @@ def log_display(file_name, number=50): m18n.n('log_does_exists', log=file_name)) infos = {} if not base_path.startswith(OPERATIONS_PATH): - infos['description'] = m18n.n("log_" + operation[2], *operation[3:]), + if len(operation) > 2: + infos['description'] = m18n.n("log_" + operation[2], *operation[3:]), infos['name'] = base_filename if os.path.exists(md_path):