RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix: add exception handling for get_by_id method (#6861)
caiming100a20439bf8122
diff --git a/api/db/services/common_service.py b/api/db/services/common_service.pyindex 75bc1a6f47..cf31a2a62c 100644--- a/api/db/services/common_service.py+++ b/api/db/services/common_service.py@@ -225,9 +225,12 @@ class CommonService:# pid: Record ID# Returns:# Tuple of (success, record)- obj = cls.model.get_or_none(cls.model.id == pid)- if obj:- return True, obj+ try:+ obj = cls.model.get_or_none(cls.model.id == pid)+ if obj:+ return True, obj+ except Exception:+ passreturn False, None@classmethod