Skip to content

Commit

Permalink
add a GET response timeout of 1 minute
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Feb 16, 2024
1 parent 325edda commit fc92f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"x64": "64"}

def download_check_fail(url, expected_type):
response = requests.get(url, allow_redirects=True)
response = requests.get(url, allow_redirects=True, timeout=60)
if not response.ok:
raise RuntimeError("error retrieving "+response.url)
if response.headers.get('content-type') != expected_type:
Expand Down

0 comments on commit fc92f46

Please sign in to comment.