changeset 1496:de71cd99ba9b

core (params): fixed exception on empty jids list
author Goffi <goffi@goffi.org>
date Tue, 25 Aug 2015 20:20:53 +0200
parents 987e74cbb839
children 7a9cef71ae43
files src/memory/params.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/memory/params.py	Tue Aug 25 20:20:47 2015 +0200
+++ b/src/memory/params.py	Tue Aug 25 20:20:53 2015 +0200
@@ -373,6 +373,9 @@
                         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):