Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add exception to handle API errors on signout #342

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

silentworks
Copy link
Contributor

What kind of change does this PR introduce?

Better exception handling on signout

What is the current behavior?

Currently if you try to sign out after a user has been deleted an API error stating User is not found is raised.

What is the new behavior?

If you try to sign out after a user has been deleted no API error stating User is not found is raised, but other types of exception can still be raised.

Additional context

Add any other context or screenshots.

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (5155312) 45.67% compared to head (2d964ad) 45.68%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #342   +/-   ##
=======================================
  Coverage   45.67%   45.68%           
=======================================
  Files          23       23           
  Lines        1898     1902    +4     
=======================================
+ Hits          867      869    +2     
- Misses       1031     1033    +2     
Files Coverage Δ
gotrue/_async/gotrue_client.py 30.37% <16.66%> (+0.09%) ⬆️
gotrue/_sync/gotrue_client.py 30.37% <16.66%> (+0.09%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

gotrue/_async/gotrue_client.py Outdated Show resolved Hide resolved
gotrue/_async/gotrue_client.py Outdated Show resolved Hide resolved
Copy link
Contributor

@anand2312 anand2312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@silentworks silentworks merged commit 708859c into main Oct 5, 2023
12 of 13 checks passed
@silentworks silentworks deleted the silentworks/sign-out-exception-handling branch October 5, 2023 15:32
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.

2 participants