summaryrefslogtreecommitdiff
path: root/client/conversation.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/conversation.py')
-rw-r--r--client/conversation.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/client/conversation.py b/client/conversation.py
index fe3e058..be9b8e9 100644
--- a/client/conversation.py
+++ b/client/conversation.py
@@ -46,14 +46,12 @@ class Conversation(object):
for notif in notifications:
print notif
- try:
- threshold, transcribed = self.mic.passiveListen(self.persona)
- except:
+ threshold, transcribed = self.mic.passiveListen(self.persona)
+ if not transcribed or not threshold:
continue
- if threshold:
- input = self.mic.activeListen(threshold)
- if input:
- self.delegateInput(input)
- else:
- self.mic.say("Pardon?")
+ input = self.mic.activeListen(threshold)
+ if input:
+ self.delegateInput(input)
+ else:
+ self.mic.say("Pardon?")