Better error handling on the assistant
This commit is contained in:
parent
96ee21dc0e
commit
caa48ad056
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ class AssistantGoogleBackend(Backend):
|
||||||
self.bus.post(ResponseEvent(response_text=event.args.get('text')))
|
self.bus.post(ResponseEvent(response_text=event.args.get('text')))
|
||||||
elif hasattr(EventType, 'ON_RESPONDING_STARTED') and \
|
elif hasattr(EventType, 'ON_RESPONDING_STARTED') and \
|
||||||
event.type == EventType.ON_RESPONDING_STARTED and \
|
event.type == EventType.ON_RESPONDING_STARTED and \
|
||||||
event.args.get('is_error_response'):
|
event.args.get('is_error_response', False) is True:
|
||||||
self.logger.warning('Assistant response error')
|
self.logger.warning('Assistant response error')
|
||||||
self._has_error = True
|
self._has_error = True
|
||||||
elif event.type == EventType.ON_RECOGNIZING_SPEECH_FINISHED:
|
elif event.type == EventType.ON_RECOGNIZING_SPEECH_FINISHED:
|
||||||
|
|
Loading…
Reference in a new issue