Skip to content

Commit

Permalink
Set the timeout for checking availability of a mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan_oksanichenko committed Jun 6, 2021
1 parent 3db5ac2 commit 6809f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirrors_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def mirror_available(
'repodata/repomd.xml',
)
try:
request = requests.get(check_url, headers=HEADERS)
request = requests.get(check_url, headers=HEADERS, timeout=60)
request.raise_for_status()
except (requests.RequestException, HTTPError):
logger.warning(
Expand Down

0 comments on commit 6809f7c

Please sign in to comment.