Count as error only for 4xx and 5xx http status codes

This commit is contained in:
Dmytro Khmelenko
2021-10-08 16:20:22 +02:00
committed by GitHub
parent c0c202c170
commit eb86183362

View File

@@ -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: