Checking if reader was created, not installed.

This commit is contained in:
Roland 2022-12-23 16:16:44 -07:00
parent e0c6a2e40e
commit 7fef847d3a
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -166,7 +166,7 @@ class PDFIndexer(Indexer, ABC):
data = PDFMetadata()
if PdfReader is None:
if reader is None:
logger.error(f'Cannot get title of {path} PyPDF2 is not installed.')
data.title = super().get_title(file)
return data