mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: When Excel is a formula, the parsed result is a formula, but cannot be correctly parsed as a value type (#6613)
### What problem does this PR solve? Fix: When Excel is a formula, the parsed result is a formula, but cannot be correctly parsed as a value type ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: tangyu <1@1.com>
This commit is contained in:
@ -45,7 +45,7 @@ class RAGFlowExcelParser:
|
|||||||
raise Exception(f"****wxy: Failed to parse CSV and convert to Excel Workbook: {e_csv}")
|
raise Exception(f"****wxy: Failed to parse CSV and convert to Excel Workbook: {e_csv}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return load_workbook(file_like_object)
|
return load_workbook(file_like_object,data_only= True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.info(f"****wxy: openpyxl load error: {e}, try pandas instead")
|
logging.info(f"****wxy: openpyxl load error: {e}, try pandas instead")
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user