From 6e20ff386d224979de0098d1af2e64b52a3f1103 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Fri, 25 Aug 2006 04:20:16 +0000 Subject: [PATCH] * src/Config/_GrampsIniKeys.py: Handle invalid default key svn: r7259 --- src/Config/_GrampsIniKeys.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Config/_GrampsIniKeys.py b/src/Config/_GrampsIniKeys.py index a8e6c64cc..9feb108e7 100644 --- a/src/Config/_GrampsIniKeys.py +++ b/src/Config/_GrampsIniKeys.py @@ -229,8 +229,11 @@ def get_bool(key): val = None if val in (True,False): return val - else: + elif key in default_value: return default_value[key] + else: + print "No default value for %s" % key + return False def set_bool(key, val): if val in (True,False):