diff --git a/netbox/extras/jobs.py b/netbox/extras/jobs.py index 9b6200450..a913fe456 100644 --- a/netbox/extras/jobs.py +++ b/netbox/extras/jobs.py @@ -49,11 +49,7 @@ class ScriptJob(JobRunner): script.log_info(message=_("Database changes have been reverted automatically.")) if script.failed: 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)