mirror of
https://github.com/beetbox/beets.git
synced 2026-02-24 08:12:54 +01:00
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:
parent
7a10a7a86b
commit
d134ad922d
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue