[dl:http] include traceback in exception debug log
This commit is contained in:
@@ -88,8 +88,10 @@ class HttpDownloader(DownloaderBase):
|
|||||||
def download(self, url, pathfmt):
|
def download(self, url, pathfmt):
|
||||||
try:
|
try:
|
||||||
return self._download_impl(url, pathfmt)
|
return self._download_impl(url, pathfmt)
|
||||||
except Exception:
|
except Exception as exc:
|
||||||
output.stderr_write("\n")
|
if self.downloading:
|
||||||
|
output.stderr_write("\n")
|
||||||
|
self.log.debug("", exc_info=exc)
|
||||||
raise
|
raise
|
||||||
finally:
|
finally:
|
||||||
# remove file from incomplete downloads
|
# remove file from incomplete downloads
|
||||||
|
|||||||
Reference in New Issue
Block a user