Skip to content

Catch user update integrity error#366

Closed
robertop23 wants to merge 2 commits intofastapi:masterfrom
robertop23:catch-user-update-integrity-error
Closed

Catch user update integrity error#366
robertop23 wants to merge 2 commits intofastapi:masterfrom
robertop23:catch-user-update-integrity-error

Conversation

@robertop23
Copy link

Added exc.IntegrityError to catch when an user update contains an already registered email

### Added exc.IntegrityError to catch when an user update contains an already registered email
@tiangolo
Copy link
Member

Thanks! Good catch! 🔍 This was handled here: #689, preemptively checking if the new email already exists. So I'll now close this one. But thanks for the effort! 🍰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants