Code cleanup and improvements.
This commit is contained in:
@@ -187,8 +187,10 @@ def _download_archive(
|
||||
try:
|
||||
response = opener(request, timeout=timeout_seconds)
|
||||
except HTTPError as exc:
|
||||
status = exc.code
|
||||
exc.close()
|
||||
raise UmuBootstrapError(
|
||||
f"portable UMU request failed: HTTP {exc.code}"
|
||||
f"portable UMU request failed: HTTP {status}"
|
||||
) from exc
|
||||
except OSError as exc:
|
||||
raise UmuBootstrapError(f"portable UMU request failed: {exc}") from exc
|
||||
|
||||
Reference in New Issue
Block a user