[fix]parsed excel document error:float division by zero

This commit is contained in:
lixiangcheng1
2025-12-31 09:51:00 +08:00
parent 07bcb54ed3
commit c78dc1fd47
2 changed files with 61 additions and 17 deletions

View File

@@ -672,6 +672,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000,
excel_parser = ExcelParser()
if parser_config.get("html4excel"):
sections = [(_, "") for _ in excel_parser.html(binary, 12) if _]
parser_config["chunk_token_num"] = 0
else:
sections = [(_, "") for _ in excel_parser(binary) if _]
parser_config["chunk_token_num"] = 12800