File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import urllib.parse
1111import urllib .request
1212import zipfile
1313from collections .abc import Sequence
14- from urllib .error import HTTPError
1514
1615
1716def _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 ()
You can’t perform that action at this time.
0 commit comments