FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: fix regression in `bidi` causing `Thread-ConsumeBidirectionalStream caught unexpected exception and will exit` by parthea · Pull Request #562 · googleapis/python-api-core · GitHub

This repository was archived by the owner on Feb 23, 2026. It is now read-only.
/ python-api-core Public archive

fix: fix regression in bidi causing Thread-ConsumeBidirectionalStream caught unexpected exception and will exit - #562

Merged
parthea merged 2 commits into
mainfrom
partial-revert-of-357
Dec 1, 2023
Merged

fix: fix regression in bidi causing Thread-ConsumeBidirectionalStream caught unexpected exception and will exit#562
parthea merged 2 commits into
mainfrom
partial-revert-of-357

Conversation

parthea commented Nov 30, 2023

Copy link
Copy Markdown
Contributor

This reverts commit e120a0c

Fixes #560

parthea merged commit 40c8ae0 into main Dec 1, 2023
parthea deleted the partial-revert-of-357 branch December 1, 2023 15:51
Comment thread google/api_core/bidi.py
return self.call is not None and self.call.is_active()
# seeing if it's active. We need to return True if self.call is None.
# See https://github.com/googleapis/python-api-core/issues/560.
if self.call is not None and not self.call.is_active():

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@parthea

It would be simpler and much clearer to have return self.call is None or self.call.is_active(). This is equivalent to what you have, by DeMorgan's theorem.

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

Labels

size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression in v2.13.0: ConsumeBidirectionalStream caught unexpected exception and will exit

3 participants


Back | FazBrowse Home | New Git URL