diff --git a/hugvey/story.py b/hugvey/story.py index c605c3a..0912782 100644 --- a/hugvey/story.py +++ b/hugvey/story.py @@ -467,10 +467,12 @@ class Condition(object): msg = story.get(self.vars['msgId']) if not msg: story.logger.critical(f"Condition on non-existing message: {self.vars['msgId']}") - return False + # assigning false to r, keeps 'inverseMatch' working, even when msgId is wrong + r = False + else: + #: :type msg: Message + r = msg.isFinished() - #: :type msg: Message - r = msg.isFinished() if r: story.logger.debug(f"Msg {self.vars['msgId']} has been played.")