mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Be more robust against empty metadata file
This commit is contained in:
parent
61f8c9efc4
commit
f0ad9440cf
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ def log_list(category=[], limit=None, with_details=False):
|
|||
except yaml.YAMLError:
|
||||
logger.warning(m18n.n('log_corrupted_md_file', file=md_path))
|
||||
|
||||
entry["success"] = metadata.get("success", "?")
|
||||
entry["success"] = metadata.get("success", "?") if metadata else "?"
|
||||
|
||||
result[category].append(entry)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue