[orca/new-settings] Changed the way to get the profile from the dictionary so it doesn't break with empty values
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Changed the way to get the profile from the dictionary so it doesn't break with empty values
- Date: Wed, 27 Oct 2010 03:38:58 +0000 (UTC)
commit ebe99082bbef8bb0b6eb438b21226211449c5c44
Author: Juanje Ojeda <jojeda emergya es>
Date: Wed Oct 27 05:34:07 2010 +0200
Changed the way to get the profile from the dictionary so it doesn't break with empty values
src/orca/backends/yaml_backend.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/backends/yaml_backend.py b/src/orca/backends/yaml_backend.py
index 2cb5447..29ea93b 100644
--- a/src/orca/backends/yaml_backend.py
+++ b/src/orca/backends/yaml_backend.py
@@ -132,6 +132,6 @@ class Backend:
for profileName in self.profiles:
profileDict = self.profiles[profileName]
- profiles.append(profileDict['profile'])
+ profiles.append(profileDict.get('profile'))
return profiles
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]