Fixup the pipe_once plugin

pull/2109/head
Michael DeHaan 12 years ago
parent 0af83317a1
commit fa21b41357

@ -33,7 +33,8 @@ class LookupModule(object):
ret = [] ret = []
for term in terms: for term in terms:
if term in CACHE: if term in CACHE:
ret.append(CACHE.get(term) ret.append(CACHE.get(term))
continue
p = subprocess.Popen(term, cwd=self.basedir, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) p = subprocess.Popen(term, cwd=self.basedir, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
(stdout, stderr) = p.communicate() (stdout, stderr) = p.communicate()
if p.returncode == 0: if p.returncode == 0:

Loading…
Cancel
Save