Need to ignore old values of wrong list type

svn: r13441
This commit is contained in:
Doug Blank 2009-10-28 12:15:18 +00:00
parent b5e9f4ddf0
commit 7a19720b01

View File

@ -178,6 +178,9 @@ class ConfigManager(object):
vtype = type(self.get_default(key))
if vtype == bool:
value = raw_value in ["1", "True"]
elif vtype == list:
print "WARNING: ignoring old key '%s'" % key
continue # there were no lists in oldstyle
else:
value = vtype(raw_value)
else: