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 new storage error class #313

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

silentworks
Copy link
Collaborator

What kind of change does this PR introduce?

Add new error class with better exception message handling

What is the current behavior?

Current exception returns a string formatted as json which will require json.loads to access its properties.

What is the new behavior?

The new error class returns an object which has a to_dict property that will return a dictionary of code, message and status for easier access to the values individually.

Additional context

This PR should fix supabase/supabase-py#726

@silentworks silentworks requested review from J0 and grdsdev November 22, 2024 12:41
@silentworks silentworks merged commit f040f10 into main Nov 22, 2024
11 checks passed
@silentworks silentworks deleted the silentworks/update-exceptions branch November 22, 2024 13:01
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.

Unbound response error
2 participants