mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-31 21:06:25 -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."))
|
script.log_info(message=_("Database changes have been reverted automatically."))
|
||||||
if script.failed:
|
if script.failed:
|
||||||
logger.warning("Script failed")
|
logger.warning("Script failed")
|
||||||
raise
|
|
||||||
|
|
||||||
except AbortTransaction:
|
|
||||||
# this is already handled above.
|
|
||||||
pass
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if type(e) is AbortScript:
|
if type(e) is AbortScript:
|
||||||
msg = _("Script aborted with error: ") + str(e)
|
msg = _("Script aborted with error: ") + str(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user