Actually excludes this line from the coverage

This commit is contained in:
Trenton H 2023-11-29 11:17:08 -08:00
parent 7580afa6bc
commit ec491a07d7

View File

@ -244,7 +244,7 @@ class RasterisedDocumentParser(DocumentParser):
f"no DPI information is present in this image and " f"no DPI information is present in this image and "
f"OCR_IMAGE_DPI is not set.", 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( self.log.warning(
f"Image DPI of {ocrmypdf_args['image_dpi']} is low, OCR may fail", f"Image DPI of {ocrmypdf_args['image_dpi']} is low, OCR may fail",
) )