NetBox version
v3.2.4
Python version
3.9
Steps to Reproduce
- Register a webhook handler for the Contact object type.
- Run the following custom script:
from extras.scripts import Script
from tanancy.models import Contact
class MyScript(Script):
def run(self, data, commit):
contact = Contact(name="test")
contact.full_clean()
contact.save()
raise Exception("Exception")
Expected Behavior
No webhooks are sent as the script failed and the database transaction is rolled back.
Observed Behavior
A weebhook is fired for the contact object.