Skip to content

Commit

Permalink
Skip error links with 502 status
Browse files Browse the repository at this point in the history
  • Loading branch information
yatarkan committed Aug 5, 2024
1 parent 028e2bb commit 2edf0df
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 @@ -86,7 +86,7 @@ def complain(message):
try:
get = requests.get(url, timeout=10)
if get.status_code != 200:
if get.status_code in [500, 429, 443, 403] and any([known_url in url for known_url in EXCEPTIONS_URLs]):
if get.status_code in [502, 500, 429, 443, 403] and any([known_url in url for known_url in EXCEPTIONS_URLs]):
print(f"SKIP - {md_path}: URL can not be reached {url!r}, status code {get.status_code}")
continue
complain(f"{md_path}: URL can not be reached {url!r}, status code {get.status_code}")
Expand Down

0 comments on commit 2edf0df

Please sign in to comment.