Skip to content

Commit 8ddc919

Browse files
committed
Ignore new pylint false positive
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 1b538bd commit 8ddc919

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/frequenz/channels/_receiver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ async def receive(self) -> ReceiverMessageT_co: # noqa: DOC503
239239
isinstance(exc.__cause__, ReceiverStoppedError)
240240
and exc.__cause__.receiver is self
241241
):
242-
raise exc.__cause__
242+
# 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
243245
raise ReceiverStoppedError(self) from exc
244246
return received
245247

0 commit comments

Comments
 (0)