The criteria was wrongly set to None as the following code has
no return value:
criteria = set().add(criteria)
We should do this instead:
criteria = set([criteria])
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
else:
criteria = 'OR (%s) (%s)' % (criteria, crit)
if criteria != '':
- criteria = set().add(criteria)
+ criteria = set([criteria])
fetch = imapami.utils.highest_fetch_level(
[c.fetch for c in cond_list])
ImapamiCond.__init__(self, fetch=fetch, criteria=criteria)