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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Catch and surface BaseException() #1108

Merged
merged 3 commits into from Mar 6, 2024
Merged

fix: Catch and surface BaseException() #1108

merged 3 commits into from Mar 6, 2024

Conversation

mukund-ananthu
Copy link
Contributor

Currently, the behavior of the library is to catch Exception() when encountered in the user provided callback, surface it to the calling code and shut down the client.

However, for BaseException() encountered in the user provided callback, the BaseException() is not surfaced to the calling code and the client is not shut down.

Make the behavior of the client when BaseException() is encountered consistent with the behavior of the client when Exception() is encountered.

Fixes #1107 馃

@mukund-ananthu mukund-ananthu requested review from a team as code owners March 5, 2024 15:40
@mukund-ananthu mukund-ananthu self-assigned this Mar 5, 2024
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: pubsub Issues related to the googleapis/python-pubsub API. labels Mar 5, 2024
Currently, the behavior of the library is to catch Exception() when encountered in the user provided callback, surface it to the calling code and shut down the client.

However, for BaseException() encountered in the user provided callback, the BaseException() is not surfaced to the calling code and the client is not shut down.

Make the behavior of the client when BaseException() is encountered consistent with the behavior of the client when Exception() is encountered.
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Mar 5, 2024
@mukund-ananthu mukund-ananthu enabled auto-merge (squash) March 6, 2024 00:58
@mukund-ananthu mukund-ananthu merged commit 07e427f into main Mar 6, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/python-pubsub API. size: s Pull request size is small.
Projects
None yet
2 participants