mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-30 20:36:26 -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")
|
||||
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