Event Handlers in startup.py cause Revit to Crash

Wondering if others have seen this - where the event handlers in the startup.py file have been causing it to crash Revit

nope, not once
||||||||||||||||||||||||||||

Event handlers are notorious for crashing Revit if they experience an unhandled exception.

try:
except Exception as e:
    from pyrevit import forms
    forms.alert('Failed event handler ###! {}'.format(str(e)))
1 Like