diff --git a/app/lib/colorlib.py b/app/lib/colorlib.py index 28c90dd6..c6e87fdf 100644 --- a/app/lib/colorlib.py +++ b/app/lib/colorlib.py @@ -53,7 +53,11 @@ class ProcessAlbumColors: """ def __init__(self) -> None: - albums = [a for a in AlbumStore.albums if a is not None and len(a.colors) == 0] + albums = [ + a + for a in AlbumStore.albums + if a is not None and a.colors is not None and len(a.colors) == 0 + ] with SQLiteManager() as cur: try: