Actually excludes this line from the coverage
This commit is contained in:
parent
7580afa6bc
commit
ec491a07d7
@ -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",
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user