fix: Catch and surface BaseException() by mukund-ananthu · Pull Request #1108 · googleapis/python-pubsub
Navigation Menu
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
- Notifications You must be signed in to change notification settings
- Fork 214
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters