mirror of
https://github.com/beetbox/beets.git
synced 2026-02-19 05:45:33 +01:00
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:
parent
f6ecbf659f
commit
4818264a36
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue