Skip to content

Commit

Permalink
fix: dont retry link check task on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimds committed Oct 2, 2024
1 parent 2454a4a commit d50d5e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wagtaillinkchecker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ def check_link(
link_pk,
verbosity=1,
):
return check_link_sync(link_pk, verbosity=verbosity)
try:
return check_link_sync(link_pk, verbosity=verbosity)
except Exception as e:
print(f"Failed to check link {link_pk}: {e}")


def check_link_sync(link_pk, verbosity=1):
Expand Down

0 comments on commit d50d5e5

Please sign in to comment.