mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-31 21:06:25 -06:00
17635 fix script AbortTransaction
This commit is contained in:
parent
55fad2f533
commit
7a16536308
@ -51,6 +51,9 @@ class ScriptJob(JobRunner):
|
|||||||
logger.warning("Script failed")
|
logger.warning("Script failed")
|
||||||
raise
|
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