Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

minor fix: using the same AccountInFreezeError (#23061)

NeatGuyCoding537c04745dd7
diff --git a/api/controllers/console/auth/error.py b/api/controllers/console/auth/error.py
index 1984339addb..8c5e23de58e 100644
--- a/api/controllers/console/auth/error.py
+++ b/api/controllers/console/auth/error.py
@@ -113,9 +113,3 @@ class MemberNotInTenantError(BaseHTTPException):
error_code = "member_not_in_tenant"
description = "The member is not in the workspace."
code = 400
-
-
-class AccountInFreezeError(BaseHTTPException):
- error_code = "account_in_freeze"
- description = "This email is temporarily unavailable."
- code = 400
diff --git a/api/controllers/console/workspace/account.py b/api/controllers/console/workspace/account.py
index 3670bac139d..4d5357cd18b 100644
--- a/api/controllers/console/workspace/account.py
+++ b/api/controllers/console/workspace/account.py
@@ -9,14 +9,13 @@ from configs import dify_config
from constants.languages import supported_language
from controllers.console import api
from controllers.console.auth.error import (
- AccountInFreezeError,
EmailAlreadyInUseError,
EmailChangeLimitError,
EmailCodeError,
InvalidEmailError,
InvalidTokenError,
)
-from controllers.console.error import AccountNotFound, EmailSendIpLimitError
+from controllers.console.error import AccountInFreezeError, AccountNotFound, EmailSendIpLimitError
from controllers.console.workspace.error import (
AccountAlreadyInitedError,
CurrentPasswordIncorrectError,