From d8caef72f88599e7a3fd2912440d8c0c697439af Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 24 Nov 2022 19:55:27 -0600 Subject: [PATCH] log link exceptions --- .github/actions/check-links/check_links.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/check-links/check_links.py b/.github/actions/check-links/check_links.py index bed0862..a64d0b6 100644 --- a/.github/actions/check-links/check_links.py +++ b/.github/actions/check-links/check_links.py @@ -65,7 +65,8 @@ def check_links(ignore_glob, ignore_links, links_expire): try: log(f"\n{f} (second attempt)...\n") subprocess.check_output(file_cmd + ["--lf"], shell=False) - except Exception: + except Exception as e: + log(e) fails += 1 if fails == 3: raise RuntimeError("Found three failed links, bailing")