瀏覽代碼

fix: wrong element object (#9868)

tags/0.10.2
virgosoy 1 年之前
父節點
當前提交
17cacf258e
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      api/core/rag/extractor/word_extractor.py

+ 1
- 1
api/core/rag/extractor/word_extractor.py 查看文件

@@ -234,7 +234,7 @@ class WordExtractor(BaseExtractor):
def parse_paragraph(paragraph):
paragraph_content = []
for run in paragraph.runs:
if hasattr(run.element, "tag") and isinstance(element.tag, str) and run.element.tag.endswith("r"):
if hasattr(run.element, "tag") and isinstance(run.element.tag, str) and run.element.tag.endswith("r"):
drawing_elements = run.element.findall(
".//{http://schemas.openxmlformats.org/wordprocessingml/2006/main}drawing"
)

Loading…
取消
儲存