summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/OCR.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-21 14:36:22 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-21 14:36:22 +0200
commitf9fc367427e30b7a3ca2ccad6144cb76b21f0257 (patch)
treed35656dd6253edcfdd4d19efe1756c0fddacaf27 /module/plugins/internal/OCR.py
parentFix pyfile.name processing (diff)
downloadpyload-f9fc367427e30b7a3ca2ccad6144cb76b21f0257.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/OCR.py')
-rw-r--r--module/plugins/internal/OCR.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/plugins/internal/OCR.py b/module/plugins/internal/OCR.py
index b24b3058b..5913e604d 100644
--- a/module/plugins/internal/OCR.py
+++ b/module/plugins/internal/OCR.py
@@ -128,6 +128,7 @@ class OCR(Plugin):
try:
with open(tmpTxt.name, 'r') as f:
self.result_captcha = f.read().replace("\n", "")
+
except Exception:
self.result_captcha = ""
@@ -194,6 +195,7 @@ class OCR(Plugin):
count += 1
if pixels[x, y - 1] != 255:
count += 1
+
except Exception:
pass