type shall not be a list

This commit is contained in:
gwen 2013-02-26 17:04:41 +01:00
parent e515ec145d
commit 1f1e5e5d26

View file

@ -69,6 +69,8 @@ class Values(object):
def set_previous_value(self, opt):
if opt in self.values:
old_value = self.values[opt]
elif opt.is_multi():
old_value = []
else:
old_value = None
if type(old_value) == Multi: