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
a553dd59
Unverified
Commit
a553dd59
authored
Jan 15, 2022
by
Matheus Felipe
Browse files
Mapped RequestException Exceptions
parent
8c28be14
Changes
1
Show whitespace changes
Inline
Side-by-side
scripts/validate/links.py
View file @
a553dd59
...
...
@@ -184,7 +184,7 @@ def check_if_link_is_working(link: str) -> Tuple[bool, str]:
has_error
=
True
error_message
=
f
'ERR:TMR:
{
error
}
:
{
link
}
'
except
Exception
as
error
:
except
(
Exception
,
requests
.
exceptions
.
RequestException
)
as
error
:
has_error
=
True
error_message
=
f
'ERR:UKN:
{
error
}
:
{
link
}
'
...
...
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