Fix AttributeError in WODownload when ConnectionError lacks reason

This commit is contained in:
Saskia Teichmann
2025-03-27 12:35:13 +01:00
parent d38d2d2c15
commit 53f52c1d25

View File

@@ -29,7 +29,7 @@ class WODownload():
out_file.write(req.content)
Log.valide(self, "Downloading {0:20}".format(pkg_name))
except requests.RequestException as e:
Log.debug(self, "[{err}]".format(err=str(e.reason)))
Log.debug(self, f"[{type(e).__name__}] {str(e)}")
Log.error(self, "Unable to download file, {0}"
.format(filename), exit=False)
return False