core (params): fixed exception on empty jids list
This commit is contained in:
parent
0fd4e7732a
commit
456ff0ab6c
1 changed files with 3 additions and 0 deletions
|
|
@ -373,6 +373,9 @@ class Params(object):
|
|||
log.error(_(u'Parameter (%(cat)s, %(param)s) of type list has more than one default option!') % {'cat': cat, 'param': param})
|
||||
raise exceptions.DataError
|
||||
elif node.getAttribute('type') == 'jids_list':
|
||||
if not value:
|
||||
log.debug(u"jids list value is empty")
|
||||
return []
|
||||
jids = value.split('\t')
|
||||
to_delete = []
|
||||
for idx, value in enumerate(jids):
|
||||
|
|
|
|||
Loading…
Reference in a new issue