mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Sometimes metadata ends up being empty for some reason and ends up being loaded as None, making the "in" operator crash :|
This commit is contained in:
parent
9bec81398a
commit
50129f3a29
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ def log_show(
|
|||
# Display metadata if exist
|
||||
if os.path.exists(md_path):
|
||||
try:
|
||||
metadata = read_yaml(md_path)
|
||||
metadata = read_yaml(md_path) or {}
|
||||
except MoulinetteError as e:
|
||||
error = m18n.n("log_corrupted_md_file", md_file=md_path, error=e)
|
||||
if os.path.exists(log_path):
|
||||
|
|
Loading…
Add table
Reference in a new issue