From 6eb8031c7239c17db031ac3c47f1ea0775fdf79f Mon Sep 17 00:00:00 2001 From: miro Date: Fri, 3 May 2024 22:10:51 +0100 Subject: [PATCH] activate in fallback handlers too --- ovos_workshop/skills/fallback.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ovos_workshop/skills/fallback.py b/ovos_workshop/skills/fallback.py index 5a50435b..cedaa6a0 100644 --- a/ovos_workshop/skills/fallback.py +++ b/ovos_workshop/skills/fallback.py @@ -377,6 +377,7 @@ def _handle_fallback_request(self, message: Message): # indicate completion status = True handler_name = get_handler_name(handler) + self.activate() # activate skill for converse break except Exception: LOG.exception('Exception in fallback.') @@ -388,9 +389,7 @@ def _handle_fallback_request(self, message: Message): data={"result": status, "fallback_handler": handler_name})) def _old_register_fallback(self, handler: callable, priority: int): - """ - makes the skill active, done by core >= 0.0.8 - """ + """ core < 0.0.8 """ LOG.info(f"registering fallback handler -> " f"ovos.skills.fallback.{self.skill_id}") @@ -416,7 +415,6 @@ def register_fallback(self, handler: callable, priority: int): @param handler: Fallback handler @param priority: priority of the registered handler """ - LOG.info(f"registering fallback handler -> " f"ovos.skills.fallback.{self.skill_id}") self._fallback_handlers.append((priority, handler))