mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Show number of links with a possible error
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user