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
50ad807e
Unverified
Commit
50ad807e
authored
Jan 13, 2022
by
Matheus Felipe
Browse files
Show number of links with a possible error
parent
4edd0d5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/validate/links.py
View file @
50ad807e
...
@@ -225,6 +225,11 @@ if __name__ == '__main__':
...
@@ -225,6 +225,11 @@ if __name__ == '__main__':
errors
=
check_if_list_of_links_are_working
(
links
)
errors
=
check_if_list_of_links_are_working
(
links
)
if
errors
:
if
errors
:
num_errors
=
len
(
errors
)
print
(
f
'Apparently
{
num_errors
}
links are not working properly. See in:'
)
for
error_message
in
errors
:
for
error_message
in
errors
:
print
(
error_message
)
print
(
error_message
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
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