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.

fix: When a WorkSpaceNotAllowedCreateError occurs, may account is not defined (#11144)

jiangbo721aa4c6874f1bf
diff --git a/api/services/account_service.py b/api/services/account_service.py
index 47730298b90..8329ef36458 100644
--- a/api/services/account_service.py
+++ b/api/services/account_service.py
@@ -913,6 +913,8 @@ class RegisterService:
db.session.commit()
except WorkSpaceNotAllowedCreateError:
db.session.rollback()
+ logging.exception("Register failed")
+ raise AccountRegisterError("Workspace is not allowed to create.")
except AccountRegisterError as are:
db.session.rollback()
logging.exception("Register failed")