transitions icon indicating copy to clipboard operation
transitions copied to clipboard

"on_exception" is not invoked for "KeyboardInterrupt"

Open aleneum opened this issue 1 year ago • 0 comments

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

aleneum avatar Apr 07 '23 12:04 aleneum