Unverified Commit 846e338a authored by Matheus Felipe's avatar Matheus Felipe Committed by GitHub
Browse files

Count as error only for 4xx and 5xx http status codes (#2407)

parents 26ff7234 eb861833
......@@ -64,7 +64,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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment