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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
optimize account status field hard coded (#18771)
gsminiec82534a1ea6
diff --git a/api/controllers/console/wraps.py b/api/controllers/console/wraps.pyindex e5e8038ad71..6911181d82a 100644--- a/api/controllers/console/wraps.py+++ b/api/controllers/console/wraps.py@@ -10,6 +10,7 @@ from configs import dify_configfrom controllers.console.workspace.error import AccountNotInitializedErrorfrom extensions.ext_database import dbfrom extensions.ext_redis import redis_client+from models.account import AccountStatusfrom models.dataset import RateLimitLogfrom models.model import DifySetupfrom services.feature_service import FeatureService, LicenseStatus@@ -24,7 +25,7 @@ def account_initialization_required(view):# check account initializationaccount = current_user- if account.status == "uninitialized":+ if account.status == AccountStatus.UNINITIALIZED:raise AccountNotInitializedError()return view(*args, **kwargs)