diff --git a/api/services/account_service.py b/api/services/account_service.py index 7cbbc8c4284660..3ee24f0a5178d6 100644 --- a/api/services/account_service.py +++ b/api/services/account_service.py @@ -627,6 +627,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}")