From ec491a07d7f3c37cf1eb40c1f4b1497d3b876459 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Wed, 29 Nov 2023 11:17:08 -0800 Subject: [PATCH] Actually excludes this line from the coverage --- src/paperless_tesseract/parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index f80a119cc..3523da7bd 100644 --- a/src/paperless_tesseract/parsers.py +++ b/src/paperless_tesseract/parsers.py @@ -244,7 +244,7 @@ class RasterisedDocumentParser(DocumentParser): f"no DPI information is present in this image and " f"OCR_IMAGE_DPI is not set.", ) - if ocrmypdf_args["image_dpi"] < 70: # pragma: nocover + if ocrmypdf_args["image_dpi"] < 70: # pragma: no cover self.log.warning( f"Image DPI of {ocrmypdf_args['image_dpi']} is low, OCR may fail", )