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

subscriber.subscribe() does not surface BaseException() encountered in the user provided callback function to the calling code #1107

Closed
mukund-ananthu opened this issue Mar 5, 2024 · 0 comments · Fixed by #1108
Assignees
Labels
api: pubsub Issues related to the googleapis/python-pubsub API.

Comments

@mukund-ananthu
Copy link
Contributor

  1. 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.

  1. 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.

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

@mukund-ananthu mukund-ananthu self-assigned this Mar 5, 2024
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the googleapis/python-pubsub API. label Mar 5, 2024
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant