mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
For some reason sometimes submetadata is None ...
This commit is contained in:
parent
8f1b05f3cf
commit
00508c9698
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ def log_display(path, number=None, share=False, filter_irrelevant=False, with_su
|
||||||
except Exception:
|
except Exception:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if submetadata.get("parent") == base_filename:
|
if submetadata and submetadata.get("parent") == base_filename:
|
||||||
yield {
|
yield {
|
||||||
"name": filename[:-len(METADATA_FILE_EXT)],
|
"name": filename[:-len(METADATA_FILE_EXT)],
|
||||||
"description": _get_description_from_name(filename[:-len(METADATA_FILE_EXT)]),
|
"description": _get_description_from_name(filename[:-len(METADATA_FILE_EXT)]),
|
||||||
|
|
Loading…
Add table
Reference in a new issue