* src/Config/_GrampsIniKeys.py: Handle invalid default key

svn: r7259
This commit is contained in:
Brian Matherly 2006-08-25 04:20:16 +00:00
parent ea88653704
commit 6e20ff386d

View File

@ -229,8 +229,11 @@ def get_bool(key):
val = None val = None
if val in (True,False): if val in (True,False):
return val return val
else: elif key in default_value:
return default_value[key] return default_value[key]
else:
print "No default value for %s" % key
return False
def set_bool(key, val): def set_bool(key, val):
if val in (True,False): if val in (True,False):