Skip to content

Commit

Permalink
add timeout for links check (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored May 18, 2023
1 parent 1ca504a commit 6e2623d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def complain(message):
continue

try:
get = requests.get(url)
get = requests.get(url, timeout=5)
if get.status_code != 200:
complain(f'{md_path}: URL can not be reached {url!r}, status code {get.status_code}')
except Exception as err:
Expand Down

0 comments on commit 6e2623d

Please sign in to comment.