Skip to content

Commit b778b64

Browse files
committed
Make exception handling for cover art fetching more tolerant
Use the parent class WebServiceError to cover all errors related to MusicBrainz API requests (ResponseError, NetworkError and AuthenticationError) Signed-off-by: Loïc CORBASSON <loic.devel@corbasson.fr>
1 parent 420d81b commit b778b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

whipper/common/program.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def getCoverArt(path, release_id):
529529
logger.debug('fetching cover art for release: %r', release_id)
530530
try:
531531
data = musicbrainzngs.get_image_front(release_id, 500)
532-
except musicbrainzngs.ResponseError as e:
532+
except musicbrainzngs.WebServiceError as e:
533533
logger.error('error fetching cover art: %r', e)
534534
return
535535

0 commit comments

Comments
 (0)