Skip to content

Commit 3356b43

Browse files
committed
let it crash
1 parent 7e8308f commit 3356b43

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

bin/backfill-core-metadata

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import urllib.parse
1111
import urllib.request
1212
import zipfile
1313
from collections.abc import Sequence
14-
from urllib.error import HTTPError
1514

1615

1716
def _get_metadata_bytes(filename: str) -> bytes:
@@ -45,12 +44,8 @@ def main(argv: Sequence[str] | None = None) -> int:
4544
url = f"{args.pypi_url}/wheels/{basename}"
4645
fp = f"{tmpdir}/{basename}"
4746

48-
try:
49-
with urllib.request.urlopen(url) as resp, open(fp, "wb") as f:
50-
f.write(resp.read())
51-
except HTTPError as e:
52-
print(f"failed to get metadata for {basename}:\n\n{e}\n")
53-
continue
47+
with urllib.request.urlopen(url) as resp, open(fp, "wb") as f:
48+
f.write(resp.read())
5449

5550
metadata_bytes = _get_metadata_bytes(fp)
5651
metadata_sha256 = hashlib.sha256(metadata_bytes).hexdigest()

0 commit comments

Comments
 (0)