From 7a165363083ff5e3714d63e3159ec7a0e49a8b19 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Tue, 15 Oct 2024 13:16:47 -0700 Subject: [PATCH] 17635 fix script AbortTransaction --- netbox/extras/jobs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netbox/extras/jobs.py b/netbox/extras/jobs.py index 64a7d6a69..9b6200450 100644 --- a/netbox/extras/jobs.py +++ b/netbox/extras/jobs.py @@ -51,6 +51,9 @@ class ScriptJob(JobRunner): logger.warning("Script failed") raise + except AbortTransaction: + # this is already handled above. + pass except Exception as e: if type(e) is AbortScript: msg = _("Script aborted with error: ") + str(e)