[gnome-games] gconf_client.get will sometimes return None (bgo #590974)
- From: Jason Clinton <jclinton src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games] gconf_client.get will sometimes return None (bgo #590974)
- Date: Thu, 17 Dec 2009 03:24:51 +0000 (UTC)
commit 439275e212c234a6e66efdce59f02906f43a5bef
Author: Tom Parker <palfrey tevp net>
Date: Mon Aug 10 16:47:19 2009 +0100
gconf_client.get will sometimes return None (bgo #590974)
gnome-sudoku/src/lib/gtk_goodies/gconf_wrapper.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/gtk_goodies/gconf_wrapper.py b/gnome-sudoku/src/lib/gtk_goodies/gconf_wrapper.py
index 8db134e..c507d5e 100644
--- a/gnome-sudoku/src/lib/gtk_goodies/gconf_wrapper.py
+++ b/gnome-sudoku/src/lib/gtk_goodies/gconf_wrapper.py
@@ -63,6 +63,8 @@ class GConf:
raise GConfError, 'key must not contain /'
value = self._gconf_client.get (self._domain + key)
+ if value == None:
+ raise GConfError, "gconf_client returned a None!"
ValueType = value.type
if ValueType == VALUE_BOOL:
return value.get_bool ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]