Skip to content

Conversation

parthea
Copy link
Collaborator

@parthea parthea commented Nov 30, 2023

This reverts commit e120a0c

Fixes #560

@parthea parthea merged commit 40c8ae0 into main Dec 1, 2023
@parthea parthea deleted the partial-revert-of-357 branch December 1, 2023 15:51
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
Contributor

Choose a reason for hiding this comment

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

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

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