Catch and show errors in mute_and_speak()
@@ -104,7 +104,10 @@ def handle_speak(event):
chunks = re.split(r'(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=\.|\?)\s',
utterance)
for chunk in chunks:
+ try:
mute_and_speak(chunk)
+ except:
+ logger.error('Error in mute_and_speak', exc_info=True)
else:
mute_and_speak(utterance)
