This commit is contained in:
Fabio Manganiello 2019-01-30 10:04:42 +01:00
parent 2956a9ca63
commit 2d6dfc86ac

View file

@ -104,7 +104,7 @@ class AssistantGoogleBackend(Backend):
event.type == EventType.ON_RENDER_RESPONSE: event.type == EventType.ON_RENDER_RESPONSE:
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_RENDER_RESPONSE and \ event.type == EventType.ON_RESPONDING_STARTED and \
event.args.get('is_error_response'): event.args.get('is_error_response'):
self.logger.warning('Assistant response error') self.logger.warning('Assistant response error')
self._has_error = True self._has_error = True