type shall not be a list
This commit is contained in:
parent
1f1e5e5d26
commit
c40d33fec3
@ -184,8 +184,7 @@ class Values(object):
|
|||||||
raise MultiTypeError("invalid len for the slave: {0}"
|
raise MultiTypeError("invalid len for the slave: {0}"
|
||||||
" which has {1} as master".format(opt._name,
|
" which has {1} as master".format(opt._name,
|
||||||
self.slaves[opt]._name))
|
self.slaves[opt]._name))
|
||||||
elif opt.is_multi():
|
if opt.is_multi() and not isinstance(value, Multi):
|
||||||
if not isinstance(value, Multi):
|
|
||||||
value = Multi(value, self.context, opt, multitypes.default)
|
value = Multi(value, self.context, opt, multitypes.default)
|
||||||
self.setitem(opt, value)
|
self.setitem(opt, value)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user