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
846e338a
Unverified
Commit
846e338a
authored
Oct 22, 2021
by
Matheus Felipe
Committed by
GitHub
Oct 22, 2021
Browse files
Count as error only for 4xx and 5xx http status codes (#2407)
parents
26ff7234
eb861833
Changes
1
Show whitespace changes
Inline
Side-by-side
build/validate_links.py
View file @
846e338a
...
@@ -64,7 +64,7 @@ def validate_links(links):
...
@@ -64,7 +64,7 @@ def validate_links(links):
})
})
code
=
int
(
resp
[
0
][
'status'
])
code
=
int
(
resp
[
0
][
'status'
])
# Checking status code errors
# Checking status code errors
if
(
code
>=
3
00
):
if
(
code
>=
4
00
):
hasError
=
True
hasError
=
True
print
(
f
"ERR:CLT:
{
code
}
:
{
link
}
"
)
print
(
f
"ERR:CLT:
{
code
}
:
{
link
}
"
)
except
TimeoutError
:
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