Closed aleneum closed 1 month ago
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.
BaseException
Exception
KeyboardInterrupt
Discussed in https://github.com/pytransitions/transitions/discussions/618
Catch
BaseException
instead ofException
during state transition. Even though user user exceptions should be derived fromException
[1], some exceptions such asKeyboardInterrupt
are not. I do not see an imminent problem with doing this switch.Discussed in https://github.com/pytransitions/transitions/discussions/618