Commit 88eb5516 by C. Morgan Hamill

Fix 'sequence' plugin error.

If 'terms' is a string, replace it with a single item list.
parent 40b78f96
...@@ -175,6 +175,9 @@ class LookupModule(object): ...@@ -175,6 +175,9 @@ class LookupModule(object):
terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject) terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject)
if isinstance(terms, basestring):
terms = [ terms ]
for term in terms: for term in terms:
try: try:
self.reset() # clear out things for this iteration self.reset() # clear out things for this iteration
......
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