summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/OCR.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/OCR.py')
-rw-r--r--module/plugins/internal/OCR.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/internal/OCR.py b/module/plugins/internal/OCR.py
index 15d3fc305..13089c9c0 100644
--- a/module/plugins/internal/OCR.py
+++ b/module/plugins/internal/OCR.py
@@ -12,6 +12,7 @@ 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
@@ -129,8 +130,10 @@ class OCR(Plugin):
os.remove(tmpTxt.name)
if subset and (digits or lowercase or uppercase):
os.remove(tmpSub.name)
- except Exception:
- pass
+ except OSError, e:
+ self.log_warning(e)
+ if self.pyload.debug:
+ traceback.print_exc()
def recognize(self, name):