From 92f9eae9e626c5e508151ce9d16e80b3add6e076 Mon Sep 17 00:00:00 2001 From: grglcy Date: Wed, 2 Jul 2025 20:17:21 +0100 Subject: [PATCH] warn more descriptively --- src/dir/artist.py | 2 +- src/dir/root.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dir/artist.py b/src/dir/artist.py index 2085769..9e9abda 100644 --- a/src/dir/artist.py +++ b/src/dir/artist.py @@ -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 \ No newline at end of file diff --git a/src/dir/root.py b/src/dir/root.py index 730fe64..99c17eb 100644 --- a/src/dir/root.py +++ b/src/dir/root.py @@ -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 \ No newline at end of file