Add extra debug to link checking

This commit is contained in:
Oliver Walters 2024-11-13 02:25:53 +00:00
parent 9943384156
commit 54da2f08b2
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,8 @@ def check_link(url) -> bool:
if url in cache:
return True
print(f'Checking external URL: {url}')
attempts = 5
while attempts > 0:
@ -66,6 +68,8 @@ def check_link(url) -> bool:
attempts -= 1
print(f' - URL check failed with status code {response.status_code}')
return False