mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 04:55:44 +00:00
Add extra debug to link checking
This commit is contained in:
@ -53,6 +53,8 @@ def check_link(url) -> bool:
|
|||||||
if url in cache:
|
if url in cache:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
print(f'Checking external URL: {url}')
|
||||||
|
|
||||||
attempts = 5
|
attempts = 5
|
||||||
|
|
||||||
while attempts > 0:
|
while attempts > 0:
|
||||||
@ -66,6 +68,8 @@ def check_link(url) -> bool:
|
|||||||
|
|
||||||
attempts -= 1
|
attempts -= 1
|
||||||
|
|
||||||
|
print(f' - URL check failed with status code {response.status_code}')
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user