Skip to content

Commit

Permalink
fixed long line
Browse files Browse the repository at this point in the history
  • Loading branch information
sstefanov committed Dec 13, 2024
1 parent 885923a commit 0f8e5fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/facturx/pdf_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def extract_facturx_from_pdf(
raise PDFParseError(_("Cannot read PDF file: {}").format(exc)) from exc
try:
# TODO: Support /Kids nodes
doc = pdf.trailer["/Root"]["/Names"]["/EmbeddedFiles"]["/Kids"][0]["/Names"] # type: ignore[index]
doc = pdf.trailer["/Root"]["/Names"]["/EmbeddedFiles"]\
["/Kids"][0]["/Names"] # type: ignore[index]
while doc:
if doc[0] == FACTURX_FILENAME:
break
Expand Down

0 comments on commit 0f8e5fe

Please sign in to comment.