[kupfer: 10/18] Added check for no alternatives when getting settings.
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 10/18] Added check for no alternatives when getting settings.
- Date: Tue, 22 Jan 2013 20:44:34 +0000 (UTC)
commit f06a95f00cd3904bda7a1377ecaab90598006a96
Author: Karol BÄdkowski <karol bedkowski gmail com>
Date: Tue Oct 16 18:16:17 2012 +0200
Added check for no alternatives when getting settings.
Addresses Launchpad bug 841867.
Author: David Schneider <dnschneid gmail com>
Closes: lp841867
kupfer/core/settings.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/core/settings.py b/kupfer/core/settings.py
index 29ffb01..b494960 100644
--- a/kupfer/core/settings.py
+++ b/kupfer/core/settings.py
@@ -393,6 +393,8 @@ class SettingsController (gobject.GObject, pretty.OutputMixin):
"""
Get a list of (id_, name) tuples for the given @category_key
"""
+ if not category_key in self._alternative_validators:
+ return
validator = self._alternative_validators[category_key]
for (id_, alternative) in self._alternatives[category_key].iteritems():
name = alternative["name"]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]