more accurate warning message for giving up on a PDF

This commit is contained in:
xenofem 2024-03-12 15:58:39 -04:00
parent 26ec1901c3
commit 894b1d34b6

View file

@ -384,7 +384,7 @@ class Collator:
with fitz.open(src) as pdf:
images = pdf_images(pdf, self.args.pdf_strategy)
if images is None:
print(f'Failed to enumerate page images in PDF, skipping {src}')
print(f'Failed to enumerate page images in PDF {src}')
return None
self.dest.mkdir(parents=True, exist_ok=True)