From 54da2f08b266e33b48e5cfacd39ddab8cd60ebc7 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 13 Nov 2024 02:25:53 +0000 Subject: [PATCH] Add extra debug to link checking --- docs/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/main.py b/docs/main.py index 84b91f7ad8..b65d99637a 100644 --- a/docs/main.py +++ b/docs/main.py @@ -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