Przeglądaj źródła
Count as error only for 4xx and 5xx http status codes
pull/2407/head
Dmytro Khmelenko
2 lat temu
committed by
GitHub
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z
1 dodań i
1 usunięć
-
build/validate_links.py
|
|
@@ -57,7 +57,7 @@ def validate_links(links): |
|
|
|
}) |
|
|
|
code = int(resp[0]['status']) |
|
|
|
# Checking status code errors |
|
|
|
if (code >= 300): |
|
|
|
if (code >= 400): |
|
|
|
hasError = True |
|
|
|
print(f"ERR:CLT:{code} : {link}") |
|
|
|
except TimeoutError: |
|
|
|