瀏覽代碼

Refine the error message. (#5275)

### What problem does this PR solve?

#5265

### Type of change

- [x] Refactoring
tags/v0.17.0
Kevin Hu 8 月之前
父節點
當前提交
041d72b755
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      agent/component/exesql.py

+ 2
- 2
agent/component/exesql.py 查看文件

@@ -52,9 +52,9 @@ class ExeSQLParam(GenerateParam):
self.check_positive_integer(self.top_n, "Number of records")
if self.database == "rag_flow":
if self.host == "ragflow-mysql":
raise ValueError("The host is not accessible.")
raise ValueError("For the security reason, it dose not support database named rag_flow.")
if self.password == "infini_rag_flow":
raise ValueError("The host is not accessible.")
raise ValueError("For the security reason, it dose not support database named rag_flow.")


class ExeSQL(Generate, ABC):

Loading…
取消
儲存