[orca] Fix a traceback related to the system voice.



commit 9ac7c0ccf7320c903951da960ba43a6015ea6f2c
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Mon Aug 16 18:23:06 2010 -0400

    Fix a traceback related to the system voice.

 src/orca/speech.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/speech.py b/src/orca/speech.py
index aba2b5f..3ccb661 100644
--- a/src/orca/speech.py
+++ b/src/orca/speech.py
@@ -183,7 +183,10 @@ def _speak(text, acss, interrupt):
 
     if _speechserver:
         voice = ACSS(settings.voices.get(settings.DEFAULT_VOICE))
-        voice.update(acss)
+        try:
+            voice.update(acss)
+        except:
+            pass
         _speechserver.speak(text, __resolveACSS(voice), interrupt)
 
 def speak(content, acss=None, interrupt=True):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]