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 25, 2023
1 parent 7f7280e commit ed9499d
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 ed9499d

Please sign in to comment.