diff options
Diffstat (limited to 'src/mlia/utils/download.py')
-rw-r--r-- | src/mlia/utils/download.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mlia/utils/download.py b/src/mlia/utils/download.py index 9ef2d9e..c8d0b69 100644 --- a/src/mlia/utils/download.py +++ b/src/mlia/utils/download.py @@ -48,7 +48,7 @@ def download( chunk_size: int = 8192, ) -> None: """Download the file.""" - with requests.get(url, stream=True) as resp: + with requests.get(url, stream=True, timeout=10.0) as resp: resp.raise_for_status() content_chunks = resp.iter_content(chunk_size=chunk_size) |