transitions
transitions copied to clipboard
"on_exception" is not invoked for "KeyboardInterrupt"
Catch BaseException instead of Exception during state transition.
Even though user user exceptions should be derived from Exception [1], some exceptions such as KeyboardInterrupt are not. I do not see an imminent problem with doing this switch.
Discussed in https://github.com/pytransitions/transitions/discussions/618