From 8433aac1ed4c6084beb3fccf964af7bed59caa45 Mon Sep 17 00:00:00 2001 From: Jezra Date: Sun, 9 Nov 2014 18:57:59 -0800 Subject: *slightly* improved the error handling.... slightly --- Recognizer.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Recognizer.py') diff --git a/Recognizer.py b/Recognizer.py index 7bc2023..e9cb648 100755 --- a/Recognizer.py +++ b/Recognizer.py @@ -7,6 +7,7 @@ pygst.require('0.10') import gst import os.path import gobject +import sys #define some global variables this_dir = os.path.dirname( os.path.abspath(__file__) ) @@ -31,6 +32,7 @@ class Recognizer(gobject.GObject): except Exception, e: print e.message print "You may need to install gstreamer0.10-pocketsphinx" + raise e #get the Auto Speech Recognition piece asr=self.pipeline.get_by_name('asr') -- cgit 1.4.1