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,6 +170,9 @@ class GoogleVoiceClient(object):
self.restart = False
self.logger.warn("Restart Google Voice. Language: {}".format(self.language_code))
except Exception as 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
@ -229,4 +232,3 @@ class GoogleVoiceClient(object):
def __del__(self):
self.logger.warn("Destroyed google object")