From 7a19720b01c182bc53a44074e4bf6ee23e98d5ac Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 28 Oct 2009 12:15:18 +0000 Subject: [PATCH] Need to ignore old values of wrong list type svn: r13441 --- src/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.py b/src/config.py index 61850efe1..d335e5f91 100644 --- a/src/config.py +++ b/src/config.py @@ -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: