fix typeerror on colorlib.py

This commit is contained in:
mungai-njoroge
2023-07-26 11:50:01 +03:00
parent 728c6c2def
commit d4a1a6ee1a
+5 -1
View File
@@ -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: