From 2edf0df6e37060edd7521f01112961d182955d4b Mon Sep 17 00:00:00 2001 From: yatarkan Date: Mon, 5 Aug 2024 19:22:36 +0400 Subject: [PATCH] Skip error links with 502 status --- .ci/check_links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/check_links.py b/.ci/check_links.py index e8dff2b0933..f5d1c93594f 100644 --- a/.ci/check_links.py +++ b/.ci/check_links.py @@ -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}")