mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-30 20:36:26 -06:00
17635 review changes
This commit is contained in:
parent
7a16536308
commit
ff8f8be945
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user