mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Checking if reader was created, not installed.
This commit is contained in:
parent
e0c6a2e40e
commit
7fef847d3a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue