Skip to content

Commit

Permalink
Clearer error message for text_from_image
Browse files Browse the repository at this point in the history
  • Loading branch information
dale-wahl committed Feb 1, 2023
1 parent 37eda2f commit 1492ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processors/conversion/text_from_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1492ded

Please sign in to comment.