Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

feat: wrap all python built-in exceptions into library excpetions#1191

Merged
arithmetic1728 merged 4 commits intogoogleapis:mainfrom
BigTailWolf:b250060959
Dec 6, 2022
Merged

feat: wrap all python built-in exceptions into library excpetions#1191
arithmetic1728 merged 4 commits intogoogleapis:mainfrom
BigTailWolf:b250060959

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants