1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #11152: Add support to abort custom script gracefully (#11621)

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
Maximilian Wilhelm
2023-02-02 21:22:55 +01:00
committed by GitHub
parent 95b2acb603
commit 699edd049c
3 changed files with 29 additions and 1 deletions

View File

@@ -24,6 +24,13 @@ class AbortRequest(Exception):
self.message = message
class AbortScript(Exception):
"""
Raised to cleanly abort a script.
"""
pass
class PermissionsViolation(Exception):
"""
Raised when an operation was prevented because it would violate the