We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
get_artwork
1 parent 6fa879d commit 0d3c934Copy full SHA for 0d3c934
1 file changed
pythonbits/musicbrainz.py
@@ -14,7 +14,11 @@
14
15
16
def get_artwork(release_group_id):
17
- data = musicbrainzngs.get_release_group_image_list(release_group_id)
+ try:
18
+ data = musicbrainzngs.get_release_group_image_list(release_group_id)
19
+ except musicbrainzngs.musicbrainz.ResponseError:
20
+ return None
21
+
22
for image in data["images"]:
23
if "Front" in image["types"] and image["approved"]:
24
return image["thumbnails"]["large"]
0 commit comments