more robust utterance_remainder
@@ -159,5 +159,5 @@ class Message(object):
utt = self.data.get("utterance", None)
if utt and "__tags__" in self.data:
for token in self.data["__tags__"]:
- utt = utt.replace(token["key"], "")
+ utt = utt.replace(token.get("key", ""), "")
return normalize(utt)
