mirror of
https://github.com/public-apis/public-apis.git
synced 2024-07-02 19:15:44 +02:00
Count as error only for 4xx and 5xx http status codes (#2407)
This commit is contained in:
commit
846e338a75
|
@ -64,7 +64,7 @@ def validate_links(links):
|
||||||
})
|
})
|
||||||
code = int(resp[0]['status'])
|
code = int(resp[0]['status'])
|
||||||
# Checking status code errors
|
# Checking status code errors
|
||||||
if (code >= 300):
|
if (code >= 400):
|
||||||
hasError = True
|
hasError = True
|
||||||
print(f"ERR:CLT:{code} : {link}")
|
print(f"ERR:CLT:{code} : {link}")
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user