Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: correct typo in function name paser_docx_part -> parser_docx_part (#22936)

little_huang32df3b68c795
diff --git a/api/core/workflow/nodes/document_extractor/node.py b/api/core/workflow/nodes/document_extractor/node.py
index 58741fac8b6..f3061f7d96b 100644
--- a/api/core/workflow/nodes/document_extractor/node.py
+++ b/api/core/workflow/nodes/document_extractor/node.py
@@ -305,7 +305,7 @@ def _extract_text_from_doc(file_content: bytes) -> str:
raise TextExtractionError(f"Failed to extract text from DOC: {str(e)}") from e
-def paser_docx_part(block, doc: Document, content_items, i):
+def parser_docx_part(block, doc: Document, content_items, i):
if isinstance(block, CT_P):
content_items.append((i, "paragraph", Paragraph(block, doc)))
elif isinstance(block, CT_Tbl):
@@ -329,7 +329,7 @@ def _extract_text_from_docx(file_content: bytes) -> str:
part = next(it, None)
i = 0
while part is not None:
- paser_docx_part(part, doc, content_items, i)
+ parser_docx_part(part, doc, content_items, i)
i = i + 1
part = next(it, None)