Merge pull request #64 from FloatingGhost/master

Fixed search_index
pull/30/head
Raphaël Vinot 2016-09-13 14:41:05 +02:00 committed by GitHub
commit b03a026114
1 changed files with 1 additions and 1 deletions

View File

@ -867,7 +867,7 @@ class PyMISP(object):
if allowed[rule] is not None:
if not isinstance(allowed[rule], list):
allowed[rule] = [allowed[rule]]
allowed[rule] = map(str, allowed[rule])
allowed[rule] = [x for x in map(str, allowed[rule])]
if rule in rule_levels:
if not set(allowed[rule]).issubset(rule_levels[rule]):
raise SearchError('Values in your {} are invalid, has to be in {}'.format(rule, ', '.join(str(x) for x in rule_levels[rule])))