fix AttributeError when accessing 'temppath'

[ci skip]
This commit is contained in:
Mike Fährmann
2020-01-19 00:39:17 +01:00
parent 25d5ec4ff3
commit 0e9dc5c88e

View File

@@ -209,7 +209,7 @@ class DownloadJob(Job):
# use fallback URLs if available
for num, url in enumerate(fallback or (), 1):
util.remove_file(self.temppath)
util.remove_file(self.pathfmt.temppath)
self.log.info("Trying fallback URL #%d", num)
if self.download(url):
break