fetchart: do not unnecessarily reset Candidate.path on download failure

This commit is contained in:
wordofglass 2016-06-25 13:46:26 +02:00
parent 697291b04e
commit 5d00ca8bda

View file

@ -259,7 +259,6 @@ class RemoteArtSource(ArtSource):
if real_ct not in CONTENT_TYPES:
self._log.debug(u'not a supported image: {}',
real_ct or u'unknown content type')
candidate.path = None
return
ext = b'.' + CONTENT_TYPES[real_ct][0]
@ -285,7 +284,6 @@ class RemoteArtSource(ArtSource):
# Handling TypeError works around a urllib3 bug:
# https://github.com/shazow/urllib3/issues/556
self._log.debug(u'error fetching art: {}', exc)
candidate.path = None
return