Merge pull request #724 from s-a-s-k-i-a/fix/download-log-connectionerror
Fix AttributeError in WODownload when ConnectionError lacks reason
This commit is contained in:
@@ -29,7 +29,7 @@ class WODownload():
|
|||||||
out_file.write(req.content)
|
out_file.write(req.content)
|
||||||
Log.valide(self, "Downloading {0:20}".format(pkg_name))
|
Log.valide(self, "Downloading {0:20}".format(pkg_name))
|
||||||
except requests.RequestException as e:
|
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}"
|
Log.error(self, "Unable to download file, {0}"
|
||||||
.format(filename), exit=False)
|
.format(filename), exit=False)
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user