Fix:not enough values to unpack (expected 3, got 2) in general chunk (#11139)

### What problem does this PR solve?
issue:
#11136
change:
not enough values to unpack (expected 3, got 2) in general chunk

### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
buua436
2025-11-10 15:08:24 +08:00
committed by GitHub
parent 726473fd39
commit 2b9145948f

View File

@ -62,7 +62,7 @@ def by_mineru(filename, binary=None, from_page=0, to_page=100000, lang="Chinese"
if not pdf_parser.check_installation(): if not pdf_parser.check_installation():
callback(-1, "MinerU not found.") callback(-1, "MinerU not found.")
return None, None return None, None, pdf_parser
sections, tables = pdf_parser.parse_pdf( sections, tables = pdf_parser.parse_pdf(
filepath=filename, filepath=filename,
@ -80,7 +80,7 @@ def by_docling(filename, binary=None, from_page=0, to_page=100000, lang="Chinese
if not pdf_parser.check_installation(): if not pdf_parser.check_installation():
callback(-1, "Docling not found.") callback(-1, "Docling not found.")
return None, None return None, None, pdf_parser
sections, tables = pdf_parser.parse_pdf( sections, tables = pdf_parser.parse_pdf(
filepath=filename, filepath=filename,
@ -97,7 +97,7 @@ def by_tcadp(filename, binary=None, from_page=0, to_page=100000, lang="Chinese",
if not tcadp_parser.check_installation(): if not tcadp_parser.check_installation():
callback(-1, "TCADP parser not available. Please check Tencent Cloud API configuration.") callback(-1, "TCADP parser not available. Please check Tencent Cloud API configuration.")
return None, None return None, None, tcadp_parser
sections, tables = tcadp_parser.parse_pdf( sections, tables = tcadp_parser.parse_pdf(
filepath=filename, filepath=filename,