From 53f52c1d254dea7f043e1861b68f93f8bf324ff5 Mon Sep 17 00:00:00 2001 From: Saskia Teichmann Date: Thu, 27 Mar 2025 12:35:13 +0100 Subject: [PATCH] Fix AttributeError in WODownload when ConnectionError lacks reason --- wo/core/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wo/core/download.py b/wo/core/download.py index 0c05b61..a0fc933 100644 --- a/wo/core/download.py +++ b/wo/core/download.py @@ -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