We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b23b48 commit 8a65e51Copy full SHA for 8a65e51
contrib/verifybinaries/verify.py
@@ -40,6 +40,7 @@
40
import tempfile
41
import textwrap
42
import urllib.request
43
+import urllib.error
44
import enum
45
from hashlib import sha256
46
from pathlib import PurePath, Path
@@ -126,7 +127,7 @@ def download_lines_with_urllib(url) -> t.Tuple[bool, t.List[str]]:
126
127
try:
128
return (True, [
129
line.strip().decode() for line in urllib.request.urlopen(url).readlines()])
- except urllib.request.HTTPError as e:
130
+ except urllib.error.HTTPError as e:
131
log.warning(f"HTTP request to {url} failed (HTTPError): {e}")
132
except Exception as e:
133
log.warning(f"HTTP request to {url} failed ({e})")
0 commit comments