We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb15b5d commit 4f939b9Copy full SHA for 4f939b9
templateflow/api.py
@@ -320,6 +320,8 @@ def _s3_get(filepath):
320
print(f'Downloading {url}', file=stderr)
321
# Streaming, so we can iterate over the response.
322
r = requests.get(url, stream=True, timeout=TF_GET_TIMEOUT)
323
+ if r.status_code != 200:
324
+ raise RuntimeError(f'Failed to download {url} with status code {r.status_code}')
325
326
# Total size in bytes.
327
total_size = int(r.headers.get('content-length', 0))
0 commit comments