[orca/orca-xdesktop] Fix for bug 639535 - KeyError: 'profile' traceback; Orca won't launch
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/orca-xdesktop] Fix for bug 639535 - KeyError: 'profile' traceback; Orca won't launch
- Date: Mon, 15 Aug 2011 15:17:17 +0000 (UTC)
commit f4b2653d288c7599c0591383d5287a225e3150fb
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Mon Aug 15 11:11:40 2011 -0400
Fix for bug 639535 - KeyError: 'profile' traceback; Orca won't launch
src/orca/backends/json_backend.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/backends/json_backend.py b/src/orca/backends/json_backend.py
index 612c391..b862d55 100644
--- a/src/orca/backends/json_backend.py
+++ b/src/orca/backends/json_backend.py
@@ -106,7 +106,10 @@ class Backend:
value[voiceType] = acss.ACSS(voiceDef)
if key not in settings.excludeKeys:
generalSettings[key] = value
- generalSettings['activeProfile'] = profileSettings['profile']
+ try:
+ generalSettings['activeProfile'] = profileSettings['profile']
+ except KeyError:
+ generalSettings['activeProfile'] = ["Default", "default"]
return generalSettings
def getPronunciations(self, profile='default'):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]