Issue-2812 - Allow overridden converse methods to accept messages - adding default message=None to MycroftSkill.converse and changing the signature check in the skill manager.

pull/2813/head
neonandrii 2021-01-22 17:20:48 +02:00
parent 416eebfee7
commit ba7b2795ec
1 changed files with 0 additions and 2 deletions

View File

@ -444,8 +444,6 @@ class SkillManager(Thread):
self._emit_converse_error(message, skill_id, error_message)
break
try:
utterances = message.data['utterances']
lang = message.data['lang']
# check the signature of a converse method to either pass a message or not
if len(signature(skill_loader.instance.converse).parameters) == 1:
result = skill_loader.instance.converse(message)