Discogs: add API errors to CONNECTION_ERRORS

This avoids potential crashes when DiscogsAPIError is not explicitely
caught.

Relates to #1417.
This commit is contained in:
Bruno Cauet 2015-04-17 17:29:42 +02:00
parent 7a10a7a86b
commit d134ad922d

View file

@ -43,7 +43,8 @@ USER_AGENT = u'beets/{0} +http://beets.radbox.org/'.format(beets.__version__)
# Exceptions that discogs_client should really handle but does not.
CONNECTION_ERRORS = (ConnectionError, socket.error, httplib.HTTPException,
ValueError) # JSON decoding raises a ValueError.
ValueError, # JSON decoding raises a ValueError.
DiscogsAPIError)
class DiscogsPlugin(BeetsPlugin):