Skip to content

Commit

Permalink
coverlovin2.py check another key before deref
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Jun 6, 2021
1 parent 403839d commit 05a9739
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coverlovin2/coverlovin2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,9 @@ def search_album_image(self) -> bool:
possible = [
el
for el in possible
if "cover-art-archive" in el and el["cover-art-archive"]["artwork"] == "true"
if "cover-art-archive" in el
and "artwork" in el["cover-art-archive"]
and el["cover-art-archive"]["artwork"] == "true"
]

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

0 comments on commit 05a9739

Please sign in to comment.