We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b538bd commit 8ddc919Copy full SHA for 8ddc919
src/frequenz/channels/_receiver.py
@@ -239,7 +239,9 @@ async def receive(self) -> ReceiverMessageT_co: # noqa: DOC503
239
isinstance(exc.__cause__, ReceiverStoppedError)
240
and exc.__cause__.receiver is self
241
):
242
- raise exc.__cause__
+ # This is a false positive, we are actually checking __cause__ is a
243
+ # ReceiverStoppedError which is an exception.
244
+ raise exc.__cause__ # pylint: disable=raising-non-exception
245
raise ReceiverStoppedError(self) from exc
246
return received
247
0 commit comments