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: wrap all python built-in exceptions into library excpetions #1191

Merged
merged 4 commits into from
Dec 6, 2022

Conversation

BigTailWolf
Copy link
Contributor

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.

@BigTailWolf BigTailWolf added the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 28, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 28, 2022
@BigTailWolf BigTailWolf added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 29, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 29, 2022
@clundin25
Copy link
Contributor

@BigTailWolf

This LGTM. Can you also add automation to prevent unwrapped exceptions from being checked in?

@BigTailWolf BigTailWolf added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Dec 6, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 6, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 6, 2022
@arithmetic1728
Copy link
Contributor

@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!

@arithmetic1728
Copy link
Contributor

@BigTailWolf Never mind. Just noticed your new error type inherits the original error type, so I think this should be backward compatible. LGTM

@arithmetic1728 arithmetic1728 merged commit a83af39 into googleapis:main Dec 6, 2022
@BigTailWolf BigTailWolf deleted the b250060959 branch December 9, 2022 00:22
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.

4 participants