Fix invalid trigger killing FSMBase

This commit is contained in:
Kristóf Tóth 2018-07-06 15:40:27 +01:00
parent 7cfa63bacf
commit 57d2475ebc

View File

@ -3,7 +3,7 @@
from collections import defaultdict
from transitions import Machine
from transitions import Machine, MachineError
from tfw.mixins import CallbackMixin
from tfw.config.logs import logging
@ -61,5 +61,5 @@ class FSMBase(Machine, CallbackMixin):
if all(predicate_results):
try:
self.trigger(trigger)
except AttributeError:
except (AttributeError, MachineError):
LOG.debug('FSM failed to execute nonexistent trigger: "%s"', trigger)