warn more descriptively
This commit is contained in:
parent
af908f51ca
commit
92f9eae9e6
|
@ -13,7 +13,7 @@ class Artist(Directory):
|
|||
contents = list()
|
||||
for e in self.path.iterdir():
|
||||
if e.is_file():
|
||||
self.log.warning('POP', f"File {e} ignored.")
|
||||
self.log.warning("POP", f"Warning, skipping non-dir '{e}' found in artist '{self.path.parts[-1]}'")
|
||||
elif e.is_dir():
|
||||
contents.append(Album(e, log))
|
||||
return contents
|
|
@ -12,7 +12,7 @@ class Root(Directory):
|
|||
contents = list()
|
||||
for e in self.path.iterdir():
|
||||
if e.is_file():
|
||||
self.log.warning('POP', f"File {e} ignored.")
|
||||
self.log.warning("POP", f"Warning, skipping non-dir '{e}' found in root")
|
||||
elif e.is_dir():
|
||||
contents.append(Artist(e, log))
|
||||
return contents
|
Loading…
Reference in New Issue
Block a user