summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/OCR.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-21 23:35:58 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-09-21 23:35:58 +0200
commit34244c7a49b099d30456e0bd80cf26a2be3a3208 (patch)
tree306e77f19f37eb8f1af775c321c9df8de6b394c0 /module/plugins/internal/OCR.py
parent[FastixRu] Fixup (diff)
downloadpyload-34244c7a49b099d30456e0bd80cf26a2be3a3208.tar.xz
Spare improvements and fixes (2)
Diffstat (limited to 'module/plugins/internal/OCR.py')
-rw-r--r--module/plugins/internal/OCR.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/module/plugins/internal/OCR.py b/module/plugins/internal/OCR.py
index 5913e604d..3e5afae69 100644
--- a/module/plugins/internal/OCR.py
+++ b/module/plugins/internal/OCR.py
@@ -12,7 +12,6 @@ import logging
import os
import subprocess
# import tempfile
-import traceback
from module.plugins.internal.Plugin import Plugin
from module.utils import save_join as fs_join
@@ -138,10 +137,9 @@ class OCR(Plugin):
os.remove(tmpTxt.name)
if subset and (digits or lowercase or uppercase):
os.remove(tmpSub.name)
+
except OSError, e:
self.log_warning(e)
- if self.pyload.debug:
- traceback.print_exc()
def recognize(self, name):