Skip to content

Commit

Permalink
pdplumber return empty string on importerror
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Feb 23, 2023
1 parent f393d9a commit 024d674
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/invoice2data/input/pdfplumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def to_text(path):
try:
import pdfplumber
except ImportError:
logger.debug("Cannot import pdfplumber")
logger.error("Cannot import pdfplumber")
return "".encode("UTF-8")

raw_text = ""
raw_text = raw_text.encode(encoding='UTF-8')
Expand Down

0 comments on commit 024d674

Please sign in to comment.