Commit aed42955 by Brian Coca

better checks to ensure listify emits a non string iterable

parent 47aeff16
...@@ -38,7 +38,7 @@ def listify_lookup_plugin_terms(terms, variables, loader): ...@@ -38,7 +38,7 @@ def listify_lookup_plugin_terms(terms, variables, loader):
#TODO: check if this is needed as template should also return correct type already #TODO: check if this is needed as template should also return correct type already
terms = safe_eval(terms) terms = safe_eval(terms)
if isinstance(terms, basestring): if isinstance(terms, basestring) or not isinstance(terms, list) and not isinstance(terms, set):
terms = [ terms ] terms = [ terms ]
return terms return terms
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment