type shall not be a list

This commit is contained in:
gwen 2013-02-27 08:50:41 +01:00
parent 1f1e5e5d26
commit c40d33fec3

View file

@ -184,8 +184,7 @@ class Values(object):
raise MultiTypeError("invalid len for the slave: {0}"
" which has {1} as master".format(opt._name,
self.slaves[opt]._name))
elif opt.is_multi():
if not isinstance(value, Multi):
if opt.is_multi() and not isinstance(value, Multi):
value = Multi(value, self.context, opt, multitypes.default)
self.setitem(opt, value)