summaryrefslogtreecommitdiffstats
path: root/ocrloader.py
diff options
context:
space:
mode:
Diffstat (limited to 'ocrloader.py')
-rw-r--r--ocrloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocrloader.py b/ocrloader.py
index 96dea41..3ce9ea0 100644
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -22,7 +22,7 @@ def process(cfg, filename, payload, enable_ocr=True):
fd.write(payload)
fd.close()
- if not os.path.exists(ocr_filename) and not enable_ocr:
+ if not os.path.exists(ocr_filename) and enable_ocr:
fd, tmpfilename = tempfile.mkstemp(suffix='.pdf', prefix='ocrloader-')
os.write(fd, payload)
os.close(fd)