Skip to content

Commit

Permalink
fix/OCP missing languages
Browse files Browse the repository at this point in the history
untranslated languages cause OCP pipeline to load , introduced in #396
  • Loading branch information
JarbasAl authored Feb 2, 2024
1 parent 893a9ea commit bacb661
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ovos_core/intent_services/ocp_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ def register_ocp_intents(self):
self.intent_matchers[lang] = IntentContainer()
for intent_name in self.intents:
samples = intent_data.get(intent_name)
LOG.debug(f"registering OCP intent: {intent_name}")
self.intent_matchers[lang].add_intent(
intent_name.replace(".intent", ""), samples)
if samples:
LOG.debug(f"registering OCP intent: {intent_name}")
self.intent_matchers[lang].add_intent(
intent_name.replace(".intent", ""), samples)

self.bus.on("ocp:play", self.handle_play_intent)
self.bus.on("ocp:play_favorites", self.handle_play_favorites_intent)
Expand Down

0 comments on commit bacb661

Please sign in to comment.