Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

Commit

Permalink
docstr
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 29, 2020
1 parent c708398 commit d33f8b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ovos_utils/intents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def register_bus_events(cls):
@classmethod
def check_skill(cls, skill_id):
""" Check if a skill is active """
cls.filter_active_skills()
for skill in list(cls.active_skills):
if skill[0] == skill_id:
return True
Expand Down Expand Up @@ -397,7 +398,7 @@ def handle_converse_response(cls, message):
skill_id = message.data["skill_id"]
if 'error' in message.data:
cls.handle_converse_error(message)
elif message.data.get('result', False):
elif message.data.get('result') is True:
cls.last_conversed = skill_id
if not cls.check_skill(skill_id):
# seems like we missed adding this skill to active list
Expand Down

0 comments on commit d33f8b0

Please sign in to comment.