Simon Willison’s Weblog

Subscribe

Sunday, 7th August 2022

TIL Mocking a Textract LimitExceededException with boto — For [s3-ocr issue #21](https://github.com/simonw/s3-ocr/issues/21) I needed to write a test that simulates what happens when Amazon Textract returns a "LimitExceededException". When using boto this error presents itself as an exception:
Release s3-ocr 0.6 — Tools for running OCR against files stored in S3