Fix 'sequence' plugin error.

If 'terms' is a string, replace it with a single item list.
pull/2701/head
C. Morgan Hamill 12 years ago
parent 40b78f96de
commit 88eb5516eb

@ -173,7 +173,10 @@ class LookupModule(object):
def run(self, terms, inject=None, **kwargs):
results = []
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:
try:

Loading…
Cancel
Save