From f6cf9d9150c54d12873487f62a0dc3d4ed332a1c Mon Sep 17 00:00:00 2001 From: Hannah Ward Date: Tue, 13 Sep 2016 13:03:22 +0100 Subject: [PATCH] Fixed search_index --- pymisp/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/api.py b/pymisp/api.py index 6c80b62..c44577b 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -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])))