summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-25 17:44:29 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-08 20:52:13 +0200
commit0b681b489996ea8b9a9a5d3fc670af841994085d (patch)
tree5f58cfecb3bd27a69825e62b7376cf7c59f49f67
parentb13fbec234292c46af2af37be0387d98a15ba2bf (diff)
downloadjasper-client-0b681b489996ea8b9a9a5d3fc670af841994085d.tar.gz
jasper-client-0b681b489996ea8b9a9a5d3fc670af841994085d.zip
Add error handler for cmuclmtk import to vocabcompiler
-rw-r--r--client/vocabcompiler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/vocabcompiler.py b/client/vocabcompiler.py
index a7d2c4b..9481ef6 100644
--- a/client/vocabcompiler.py
+++ b/client/vocabcompiler.py
@@ -10,9 +10,12 @@ import logging
import hashlib
from abc import ABCMeta, abstractmethod, abstractproperty
-import cmuclmtk
import g2p
import brain
+try:
+ import cmuclmtk
+except:
+ logging.getLogger(__name__).error("Error importing CMUCLMTK module. PocketsphinxVocabulary will not work correctly.", exc_info=True)
class AbstractVocabulary(object):