Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
eb861833
Unverified
Commit
eb861833
authored
Oct 08, 2021
by
Dmytro Khmelenko
Committed by
GitHub
Oct 08, 2021
Browse files
Count as error only for 4xx and 5xx http status codes
parent
c0c202c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/validate_links.py
View file @
eb861833
...
...
@@ -57,7 +57,7 @@ def validate_links(links):
})
code
=
int
(
resp
[
0
][
'status'
])
# Checking status code errors
if
(
code
>=
3
00
):
if
(
code
>=
4
00
):
hasError
=
True
print
(
f
"ERR:CLT:
{
code
}
:
{
link
}
"
)
except
TimeoutError
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment