Skip to content

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

Refactor:remove useless try catch for ppt parser (#12063)

Stephen Huba7e087aef37
diff --git a/deepdoc/parser/ppt_parser.py b/deepdoc/parser/ppt_parser.py
index 39eab03a6e..1b04b4d7c3 100644
--- a/deepdoc/parser/ppt_parser.py
+++ b/deepdoc/parser/ppt_parser.py
@@ -88,12 +88,9 @@ class RAGFlowPptParser:
texts = []
for shape in sorted(
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:
- texts.append(txt)
- except Exception as e:
- logging.exception(e)
+ txt = self.__extract(shape)
+ if txt:
+ texts.append(txt)
txts.append("\n".join(texts))
return txts