Skip to content

Commit

Permalink
Log link exceptions (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Nov 25, 2022
1 parent 13fcefc commit e1ee2f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/check-links/check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e1ee2f7

Please sign in to comment.