Skip to content

Commit

Permalink
hotfix/undeclared_variable
Browse files Browse the repository at this point in the history
noticed in core unittests
  • Loading branch information
JarbasAl committed Jun 30, 2024
1 parent b9a1561 commit 4866118
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ovos_workshop/skills/common_play.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ def __handle_ocp_query(self, message: Message):
"skill_name": self.skill_aliases[0],
"thumbnail": self.skill_icon, }))

found = False
# search this skill if MediaType is supported
if media_type in self.supported_media:
# invoke the media search handlers to let the skill perform its search
Expand Down Expand Up @@ -487,7 +488,7 @@ def __handle_ocp_query(self, message: Message):
if self._stop_event.is_set():
break
else: # skip this skill, it doesn't handle this media type
found = False
LOG.debug(f"skipping {self.skill_id}, it does not support media type: {media_type}")

if not found:
# Signal we are done (can't handle it)
Expand Down

0 comments on commit 4866118

Please sign in to comment.