warn more descriptively

This commit is contained in:
George Lacey 2025-07-02 20:17:21 +01:00
parent af908f51ca
commit 92f9eae9e6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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