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>
This commit is contained in:
Loïc Corbasson
2026-02-09 16:44:09 +01:00
committed by Loïc CORBASSON
parent 420d81bc1d
commit b778b645ab

View File

@@ -529,7 +529,7 @@ class Program:
logger.debug('fetching cover art for release: %r', release_id)
try:
data = musicbrainzngs.get_image_front(release_id, 500)
except musicbrainzngs.ResponseError as e:
except musicbrainzngs.WebServiceError as e:
logger.error('error fetching cover art: %r', e)
return