[orca/gnome-3-0] Fix for bug 639535 - KeyError: 'profile' traceback; Orca won't launch



commit 1b73af096d216033ed6df6778ec0fb18689a4958
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]