type shall not be a list
This commit is contained in:
parent
1f1e5e5d26
commit
c40d33fec3
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue