Skip to content

Commit

Permalink
more retries and longer delay for file download
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay authored Jan 16, 2025
1 parent 3e32d89 commit 1b205fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mltb2/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def fetch_remote_file(dirname, filename, url: str, sha256_checksum: str) -> str:
"""
remote = RemoteFileMetadata(filename=filename, url=url, checksum=sha256_checksum)
try:
fetch_remote_file_path = _fetch_remote(remote, dirname=dirname)
fetch_remote_file_path = _fetch_remote(remote, dirname=dirname, n_retries=5, delay=2)

# new scikit-learn version return a Path object instead of a string
if isinstance(fetch_remote_file_path, Path):
Expand Down

0 comments on commit 1b205fb

Please sign in to comment.