Skip to content
Snippets Groups Projects
Commit 00d728f6 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Display the filename along with the "No metadata found" message

parent 65cfd110
Branches
Tags
No related merge requests found
...@@ -83,7 +83,7 @@ def show_meta(filename: str): ...@@ -83,7 +83,7 @@ def show_meta(filename: str):
def __print_meta(filename: str, metadata: dict, depth: int = 1): def __print_meta(filename: str, metadata: dict, depth: int = 1):
padding = " " * depth*2 padding = " " * depth*2
if not metadata: if not metadata:
print(padding + "No metadata found") print(padding + "No metadata found in %s." % filename)
return return
print("[%s] Metadata for %s:" % ('+'*depth, filename)) print("[%s] Metadata for %s:" % ('+'*depth, filename))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment