pytransitions / transitions

A lightweight, object-oriented finite state machine implementation in Python with many extensions
MIT License
5.68k stars 530 forks source link

Trigger methods mask away KeyError exceptions #377

Closed facundofc closed 4 years ago

facundofc commented 4 years ago

If any callback raises a KeyError exception it is translated into an AttributeError with the "Do not know event named TRIGGER_NAME" message.

This is misleading and I think not the correct behavior.

aleneum commented 4 years ago

Resolved in #378