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):