From f434720617a7e8acb12b8f4a0a4427c2941a4224 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 30 Sep 2014 15:39:36 -0400 Subject: [PATCH] Don't silence OCR errors at the API high level, at this layer we don't know what really happened in the backend. Move exception handling to the backend. --- mayan/apps/ocr/api.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mayan/apps/ocr/api.py b/mayan/apps/ocr/api.py index a97e806e8a..195e65994e 100644 --- a/mayan/apps/ocr/api.py +++ b/mayan/apps/ocr/api.py @@ -73,9 +73,6 @@ def do_document_ocr(queue_document): document_page.content = ocr_cleanup(ocr_text) document_page.page_label = _(u'Text from OCR') document_page.save() - except Exception as e: - logger.debug('missing ocr backend: %s' % ocr_backend) - logger.debug('I/O error({0}): {1}'.format(e.errno, e.strerror)) finally: fs_cleanup(pre_ocr_filepath_w_ext) fs_cleanup(unpaper_input)