diff --git a/ovos_workshop/skills/ovos.py b/ovos_workshop/skills/ovos.py index 8af6bb7b..b665827a 100644 --- a/ovos_workshop/skills/ovos.py +++ b/ovos_workshop/skills/ovos.py @@ -271,7 +271,7 @@ def _handle_converse_intents(self, message): for utt in message.data['utterances']: match = self.converse_matchers[self.lang].calc_intent(utt) - if match and match["conf"] > best_score: + if match.get("conf", 0) > best_score: best_score = match["conf"] response = message.forward(match["name"], match["entities"])