diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-06 12:05:26 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-02-06 12:05:26 +0100 |
commit | 392785e31a47adec0550bfeb51666fe92503f22d (patch) | |
tree | 8b87cc530c26f92c2cccebf67c857370e53687ef /module/plugins | |
parent | webif dlc upload fix (diff) | |
download | pyload-392785e31a47adec0550bfeb51666fe92503f22d.tar.xz |
some fixes
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/captcha/captcha.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/captcha/captcha.py b/module/plugins/captcha/captcha.py index 1da269dc6..4cbb736c1 100644 --- a/module/plugins/captcha/captcha.py +++ b/module/plugins/captcha/captcha.py @@ -57,6 +57,8 @@ class OCR(object): popen = subprocess.Popen(command, bufsize = -1, stdout=subprocess.PIPE, stderr=subprocess.PIPE) popen.wait() output = popen.stdout.read() +" | "+ popen.stderr.read() + popen.stdout.close() + popen.stderr.close() self.logger.debug("Tesseract ReturnCode %s Output: %s" % (popen.returncode, output)) def run_tesser(self, subset=False, digits=True, lowercase=True, uppercase=True): @@ -108,7 +110,6 @@ class OCR(object): self.result_captcha = "" self.logger.debug(self.result_captcha) - try: os.remove(tmp.name) os.remove(tmpTxt.name) |