From 1492dedbebf015a74669ca71b99fd7d6a3034d22 Mon Sep 17 00:00:00 2001 From: Dale Wahl Date: Wed, 1 Feb 2023 16:35:09 +0100 Subject: [PATCH] Clearer error message for text_from_image --- processors/conversion/text_from_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processors/conversion/text_from_image.py b/processors/conversion/text_from_image.py index 1b3d18ddb..07b0a0dda 100644 --- a/processors/conversion/text_from_image.py +++ b/processors/conversion/text_from_image.py @@ -198,7 +198,7 @@ def annotate_image(self, image_file): try: api_request = requests.post(server.rstrip('/') + '/api/detect_text', files={'image': infile}, data=parameters, timeout=30) except requests.exceptions.ConnectionError as e: - message = f"Unable to establish connection to OCR server {e}; contact 4CAT administrator." + message = f"Unable to establish connection to OCR server {e}. 4CAT admins notified; your processor will continue when issue is resolved." self.dataset.update_status(message) raise ProcessorException(message)