[dl:http] include traceback in exception debug log

This commit is contained in:
Mike Fährmann
2025-06-07 20:24:08 +02:00
parent 8227e21257
commit f51511155e

View File

@@ -88,8 +88,10 @@ class HttpDownloader(DownloaderBase):
def download(self, url, pathfmt):
try:
return self._download_impl(url, pathfmt)
except Exception:
output.stderr_write("\n")
except Exception as exc:
if self.downloading:
output.stderr_write("\n")
self.log.debug("", exc_info=exc)
raise
finally:
# remove file from incomplete downloads