mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 09:28:38 -06:00
17635 fix script AbortTransaction (#17764)
* 17635 fix script AbortTransaction * 17635 review changes
This commit is contained in:
parent
e13bc0694d
commit
a2cd4d0983
@ -49,7 +49,6 @@ 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 Exception as e:
|
except Exception as e:
|
||||||
if type(e) is AbortScript:
|
if type(e) is AbortScript:
|
||||||
|
Loading…
Reference in New Issue
Block a user