Browse Source

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

pull/2670/head
Matheus Felipe 3 years ago
committed by GitHub
parent
commit
846e338a75
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      build/validate_links.py

+ 1
- 1
build/validate_links.py View File

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


Loading…
Cancel
Save