Skip to content
Snippets Groups Projects
Commit df9cde00 authored by Simon Magnin-Feysot's avatar Simon Magnin-Feysot
Browse files

more logical statements

parent ea7ec3ec
No related branches found
No related tags found
No related merge requests found
Pipeline #19551 passed
...@@ -76,13 +76,13 @@ def __print_meta(metadata: dict): ...@@ -76,13 +76,13 @@ def __print_meta(metadata: dict):
return return
for k, v in metadata: for k, v in metadata:
if not isinstance(v, dict): if isinstance(v, dict):
__print_meta(v)
else:
try: # FIXME this is ugly. try: # FIXME this is ugly.
print(" %s: %s" % (k, v)) print(" %s: %s" % (k, v))
except UnicodeEncodeError: except UnicodeEncodeError:
print(" %s: harmful content" % k) print(" %s: harmful content" % k)
else:
__print_meta(v)
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment