Skip to content

Commit

Permalink
Merge branch 'feat/new-login' into deploy/dev
Browse files Browse the repository at this point in the history
* feat/new-login:
  feat: register service WorkSpaceNotAllowedCreateError
  • Loading branch information
ZhouhaoJiang committed Sep 10, 2024
2 parents da8faec + 3f954e2 commit 6ec4bc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/services/account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,9 @@ def register(
tenant_was_created.send(tenant)

db.session.commit()
except WorkSpaceNotAllowedCreateError:
db.session.rollback()
raise
except Exception as e:
db.session.rollback()
logging.error(f"Register failed: {e}")
Expand Down

0 comments on commit 6ec4bc4

Please sign in to comment.