Need to ignore old values of wrong list type
svn: r13441
This commit is contained in:
parent
b5e9f4ddf0
commit
7a19720b01
@ -178,6 +178,9 @@ class ConfigManager(object):
|
|||||||
vtype = type(self.get_default(key))
|
vtype = type(self.get_default(key))
|
||||||
if vtype == bool:
|
if vtype == bool:
|
||||||
value = raw_value in ["1", "True"]
|
value = raw_value in ["1", "True"]
|
||||||
|
elif vtype == list:
|
||||||
|
print "WARNING: ignoring old key '%s'" % key
|
||||||
|
continue # there were no lists in oldstyle
|
||||||
else:
|
else:
|
||||||
value = vtype(raw_value)
|
value = vtype(raw_value)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user