core (params): fixed exception on empty jids list

This commit is contained in:
Goffi 2015-08-25 20:20:53 +02:00
commit 456ff0ab6c

View file

@ -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):