Feat/account not found (#10804)

This commit is contained in:
Garfield Dai
2024-11-18 16:14:39 +08:00
committed by GitHub
parent 3e2b8a8d02
commit c49efc0c22
4 changed files with 10 additions and 10 deletions

View File

@@ -198,9 +198,9 @@ class AccountService:
) -> Account:
"""create account"""
if not FeatureService.get_system_features().is_allow_register and not is_setup:
from controllers.console.error import NotAllowedRegister
from controllers.console.error import AccountNotFound
raise NotAllowedRegister()
raise AccountNotFound()
account = Account()
account.email = email
account.name = name