[orca] Fix for bgo#606978 - Detect working speech factory upon failure to initialize the preferred factory
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#606978 - Detect working speech factory upon failure to initialize the preferred factory
- Date: Fri, 25 Jun 2010 17:16:50 +0000 (UTC)
commit d7b89cdd4dd7c0f4bf6482ad373bb78f89e48602
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Thu Jun 24 18:03:28 2010 -0400
Fix for bgo#606978 - Detect working speech factory upon failure to initialize the preferred factory
src/orca/speech.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/speech.py b/src/orca/speech.py
index 8914462..a8b8bfe 100644
--- a/src/orca/speech.py
+++ b/src/orca/speech.py
@@ -106,8 +106,15 @@ def _initSpeechServer(moduleName, speechServerInfo):
speechServerInfo = settings.speechServerInfo
if speechServerInfo:
_speechserver = factory.SpeechServer.getSpeechServer(speechServerInfo)
- else:
+
+ if not _speechserver:
_speechserver = factory.SpeechServer.getSpeechServer()
+ if speechServerInfo:
+ debug.println(debug.LEVEL_CONFIGURATION,
+ "Invalid speechServerInfo: %s" % speechServerInfo)
+
+ if not _speechserver:
+ raise Exception("No speech server for factory: %s" % moduleName)
def init():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]