From 5d00ca8bdaa97ab35e895bcef627eba67b30d587 Mon Sep 17 00:00:00 2001 From: wordofglass Date: Sat, 25 Jun 2016 13:46:26 +0200 Subject: [PATCH] fetchart: do not unnecessarily reset Candidate.path on download failure --- beetsplug/fetchart.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index af44a7660..4d4158ec1 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -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