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
Refactor: move exceptions to common folder (#10383)
Jin Haid6eded195970
diff --git a/admin/auth.py b/admin/auth.pyindex 3748c07a67..001ba59400 100644--- a/admin/auth.py+++ b/admin/auth.py@@ -3,7 +3,7 @@ import uuidfrom functools import wrapsfrom flask import request, jsonify-from exceptions import AdminException+from api.common.exceptions import AdminExceptionfrom api.db.init_data import encode_to_base64from api.db.services import UserServicediff --git a/admin/routes.py b/admin/routes.pyindex 8cd9633b11..a737305de5 100644--- a/admin/routes.py+++ b/admin/routes.py@@ -3,7 +3,7 @@ from flask import Blueprint, requestfrom auth import login_verifyfrom responses import success_response, error_responsefrom services import UserMgr, ServiceMgr, UserServiceMgr-from exceptions import AdminException+from api.common.exceptions import AdminExceptionadmin_bp = Blueprint('admin', __name__, url_prefix='/api/v1/admin')diff --git a/admin/services.py b/admin/services.pyindex c5db5d90a5..24151d46c5 100644--- a/admin/services.py+++ b/admin/services.py@@ -7,7 +7,7 @@ from api.db.services.canvas_service import UserCanvasServicefrom api.db.services.user_service import TenantServicefrom api.db.services.knowledgebase_service import KnowledgebaseServicefrom api.utils.crypt import decrypt-from exceptions import AdminException, UserAlreadyExistsError, UserNotFoundError+from api.common.exceptions import AdminException, UserAlreadyExistsError, UserNotFoundErrorfrom config import SERVICE_CONFIGSclass UserMgr:diff --git a/admin/exceptions.py b/api/common/exceptions.pysimilarity index 100%rename from admin/exceptions.pyrename to api/common/exceptions.py