* src/Config/_GrampsIniKeys.py: Handle invalid default key
svn: r7259
This commit is contained in:
parent
ea88653704
commit
6e20ff386d
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user