-
Notifications
You must be signed in to change notification settings - Fork 432
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
Add ErrorObject to StripeError exceptions #619
Conversation
74a5099
to
08567c3
Compare
Ugh there's a circular import issue. Will fix. |
Circular import should be fixed, ptal @remi-stripe. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some minor comments but LGTM
z.update(y) | ||
return z | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is that not a helper function in Python already 🙀
assert err.error is not None | ||
assert err.error.code == "some_error" | ||
assert err.error.charge is None | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth adding tests for all 7 params in case we break something?
Released as 2.37.0. |
r? @brandur-stripe @remi-stripe
cc @stripe/api-libraries
Similar to stripe/stripe-ruby#811 and stripe/stripe-php#705.