forked from platypush/platypush
Catch PortAudio exception in case of race conditions on closed streams and re-initialize the assistant object when they occur
This commit is contained in:
parent
bb3a39acb9
commit
50313580fd
1 changed files with 6 additions and 1 deletions
|
@ -235,7 +235,12 @@ class AssistantGooglePushtotalkPlugin(AssistantPlugin):
|
|||
continue_conversation = True
|
||||
|
||||
while continue_conversation:
|
||||
continue_conversation = self.assistant.assist()
|
||||
try:
|
||||
continue_conversation = self.assistant.assist()
|
||||
except Exception as e:
|
||||
self.logger.warning('Unhandled assistant exception: {}'.format(str(e)))
|
||||
self.logger.exception(e)
|
||||
self._init_assistant()
|
||||
|
||||
return self.interactions
|
||||
|
||||
|
|
Loading…
Reference in a new issue