Skip to content

Commit 05a9739

Browse files
committed
coverlovin2.py check another key before deref
1 parent 403839d commit 05a9739

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coverlovin2/coverlovin2.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,9 @@ def search_album_image(self) -> bool:
16461646
possible = [
16471647
el
16481648
for el in possible
1649-
if "cover-art-archive" in el and el["cover-art-archive"]["artwork"] == "true"
1649+
if "cover-art-archive" in el
1650+
and "artwork" in el["cover-art-archive"]
1651+
and el["cover-art-archive"]["artwork"] == "true"
16501652
]
16511653

16521654
# store tuple pairs of (`similar` score, release/release_group entry)

0 commit comments

Comments
 (0)