Handle communication failure with converse handler

pull/2506/head
Åke Forslund 2020-03-17 14:08:44 +01:00
parent 0ad91ce321
commit 35d9558998
1 changed files with 3 additions and 1 deletions

View File

@ -230,8 +230,10 @@ class IntentService:
if result and 'error' in result.data:
self.handle_converse_error(result)
return False
else:
elif result is not None:
return result.data.get('result', False)
else:
return False
def handle_converse_error(self, message):
skill_id = message.data["skill_id"]