From d4a1a6ee1a834535a41f52bdc7534534bdc5e222 Mon Sep 17 00:00:00 2001 From: mungai-njoroge Date: Wed, 26 Jul 2023 11:50:01 +0300 Subject: [PATCH] fix typeerror on colorlib.py --- app/lib/colorlib.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: