Merge branch 'master' of gitlab.com:hugvey/hugvey

This commit is contained in:
Ruben van de Ven 2019-05-17 16:40:23 +02:00
commit d904facbe7

View file

@ -170,7 +170,10 @@ class GoogleVoiceClient(object):
self.restart = False self.restart = False
self.logger.warn("Restart Google Voice. Language: {}".format(self.language_code)) self.logger.warn("Restart Google Voice. Language: {}".format(self.language_code))
except Exception as e: except Exception as e:
self.logger.critical(f"Crashed Google Voice: {e}") if "305" in str(e):
self.logger.warning(f"Long Google Voice: {e}")
else:
self.logger.critical(f"Crashed Google Voice: {e}")
# sending an extra message is deprecated since we ignore finals anyway # sending an extra message is deprecated since we ignore finals anyway
# make sure we always send a 'final' transcript. # make sure we always send a 'final' transcript.
@ -229,4 +232,3 @@ class GoogleVoiceClient(object):
def __del__(self): def __del__(self):
self.logger.warn("Destroyed google object") self.logger.warn("Destroyed google object")