Handle non-blocking case

Change-Id: I8b5642c39a68c9d20c07dce7f9a86661ddcf03ca
diff --git a/voice.py b/voice.py
index 0bdfd8a..f703fe1 100644
--- a/voice.py
+++ b/voice.py
@@ -235,9 +235,12 @@
     return True
 
   def next(self, block=True):
-    result = self._queue.get(block)
-    self._queue.task_done()
-    return result
+    try:
+      result = self._queue.get(block)
+      self._queue.task_done()
+      return result
+    except queue.Empty:
+      return None
 
 VOICE_MODEL = 'voice_commands_v0.7_edgetpu.tflite'
 VOICE_LABELS = 'labels_gc2.raw.txt'