Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix "TypeError: '<' not supported between instances of 'Emu' and 'Non… (#9209)

Jay Xu6ad8b5475438
diff --git a/deepdoc/parser/ppt_parser.py b/deepdoc/parser/ppt_parser.py
index 58a983266a..39eab03a6e 100644
--- a/deepdoc/parser/ppt_parser.py
+++ b/deepdoc/parser/ppt_parser.py
@@ -87,7 +87,7 @@ class RAGFlowPptParser:
break
texts = []
for shape in sorted(
- slide.shapes, key=lambda x: ((x.top if x.top is not None else 0) // 10, x.left)):
+ slide.shapes, key=lambda x: ((x.top if x.top is not None else 0) // 10, x.left if x.left is not None else 0)):
try:
txt = self.__extract(shape)
if txt:
@@ -96,4 +96,4 @@ class RAGFlowPptParser:
logging.exception(e)
txts.append("\n".join(texts))
- return txts
\ No newline at end of file
+ return txts