Skip to content

Commit 7dc92d3

Browse files
committed
Display the number of retries
1 parent 0c9c364 commit 7dc92d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonbuild/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def download_to_path(url: str, path: pathlib.Path, size: int, sha256: str):
310310
print(f"urllib error on {url}; retrying: {e}")
311311
time.sleep(2**attempt)
312312
else:
313-
raise Exception("download failed after multiple retries: %s" % url)
313+
raise Exception(f"download failed after {attempt} retries: {url}")
314314

315315
tmp.rename(path)
316316
print("successfully downloaded %s" % url)

0 commit comments

Comments
 (0)