mirror of
https://github.com/simple-login/app.git
synced 2025-09-26 00:16:39 +08:00
Add missing rollback (#2364)
This commit is contained in:
parent
2918251161
commit
f86197a526
1 changed files with 1 additions and 0 deletions
|
@ -194,6 +194,7 @@ class NewUserStrategy(ClientMergeStrategy):
|
|||
strategy=self.__class__.__name__,
|
||||
)
|
||||
except (UniqueViolation, sqlalchemy.exc.IntegrityError) as e:
|
||||
Session.rollback()
|
||||
LOG.debug(f"Got the duplicate user error: {e}")
|
||||
return self.create_missing_link(canonical_email)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue