From d134ad922d83b023435032aaea84b60b016d5936 Mon Sep 17 00:00:00 2001 From: Bruno Cauet Date: Fri, 17 Apr 2015 17:29:42 +0200 Subject: [PATCH] Discogs: add API errors to CONNECTION_ERRORS This avoids potential crashes when DiscogsAPIError is not explicitely caught. Relates to #1417. --- beetsplug/discogs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index c4660ae76..80b7ae3df 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -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):