Skip to content

Commit 5d00ca8

Browse files
author
wordofglass
committed
fetchart: do not unnecessarily reset Candidate.path on download failure
1 parent 697291b commit 5d00ca8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

beetsplug/fetchart.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ def fetch_image(self, candidate, extra):
259259
if real_ct not in CONTENT_TYPES:
260260
self._log.debug(u'not a supported image: {}',
261261
real_ct or u'unknown content type')
262-
candidate.path = None
263262
return
264263

265264
ext = b'.' + CONTENT_TYPES[real_ct][0]
@@ -285,7 +284,6 @@ def fetch_image(self, candidate, extra):
285284
# Handling TypeError works around a urllib3 bug:
286285
# https://github.com/shazow/urllib3/issues/556
287286
self._log.debug(u'error fetching art: {}', exc)
288-
candidate.path = None
289287
return
290288

291289

0 commit comments

Comments
 (0)