-
Notifications
You must be signed in to change notification settings - Fork 314
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: wrap all python built-in exceptions into library excpetions #1191
Conversation
3ad2ad5
to
1043330
Compare
This LGTM. Can you also add automation to prevent unwrapped exceptions from being checked in? |
@BigTailWolf This looks like a big change. Since gcloud is a major customer of google-auth library, could you ask James Wu from gcloud team to see if he has any concerns about it? Thanks! |
@BigTailWolf Never mind. Just noticed your new error type inherits the original error type, so I think this should be backward compatible. LGTM |
No longer throw raw exception from python.
All the exceptions are throwing through wrapped exception from
google/auth/exceptions.py
so that any client code can catch those exceptions and knowing it's raised by SDK.