fix: Fix login error handling by raising exception instead of returning (#24452)
This commit is contained in:
parent
044ad5100e
commit
a9e106b17e
2 changed files with 49 additions and 77 deletions
|
|
@ -221,7 +221,7 @@ class EmailCodeLoginApi(Resource):
|
|||
email=user_email, name=user_email, interface_language=languages[0]
|
||||
)
|
||||
except WorkSpaceNotAllowedCreateError:
|
||||
return NotAllowedCreateWorkspace()
|
||||
raise NotAllowedCreateWorkspace()
|
||||
except AccountRegisterError as are:
|
||||
raise AccountInFreezeError()
|
||||
except WorkspacesLimitExceededError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue