Added TypeError to the list of caught exceptions in fetachart._fetch_image

requests/urllib3 is throwing an exception due to an internal problem triggered
by some sort of timeout. This change catches the TypeError so that beets
reports "error fetching art" instead of crashing when this happens.
This commit is contained in:
Ben Ockmore 2015-08-01 16:50:59 +01:00
parent f6ecbf659f
commit 4818264a36

View file

@ -436,7 +436,7 @@ class FetchArtPlugin(plugins.BeetsPlugin):
self._log.debug(u'downloaded art to: {0}',
util.displayable_path(fh.name))
return fh.name
except (IOError, requests.RequestException):
except (IOError, requests.RequestException, TypeError):
self._log.debug(u'error fetching art')
def _is_valid_image_candidate(self, candidate):