Skip to content

Commit

Permalink
Count as error only for 4xx and 5xx http status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhmelenko committed Oct 8, 2021
1 parent c0c202c commit eb86183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/validate_links.py
Expand Up @@ -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:
Expand Down

0 comments on commit eb86183

Please sign in to comment.