1
0
mirror of synced 2024-11-21 16:54:23 +01:00

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

This commit is contained in:
jvoisin 2019-07-18 01:29:50 +02:00
parent 65cfd110f9
commit 00d728f6cc

2
mat2
View File

@ -83,7 +83,7 @@ def show_meta(filename: str):
def __print_meta(filename: str, metadata: dict, depth: int = 1):
padding = " " * depth*2
if not metadata:
print(padding + "No metadata found")
print(padding + "No metadata found in %s." % filename)
return
print("[%s] Metadata for %s:" % ('+'*depth, filename))