handle the FileNotFoundError for os.path.getsize on watchdogg

This commit is contained in:
mungai-njoroge
2023-07-18 16:53:06 +03:00
parent e70d787580
commit 18f6593666
2 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class ProcessAlbumColors:
"""
def __init__(self) -> None:
albums = [a for a in AlbumStore.albums if a is None or len(a.colors) == 0]
albums = [a for a in AlbumStore.albums if a is not None and len(a.colors) == 0]
with SQLiteManager() as cur:
try: