Skip to content

Commit

Permalink
Update src/anyio/_backends/_asyncio.py
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Grainger <[email protected]>
  • Loading branch information
gschaffner and graingert authored Dec 5, 2024
1 parent 7c0c02a commit 9ddcd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anyio/_backends/_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def is_anyio_cancellation(exc: CancelledError) -> bool:
# matching cancel message
while True:
if (
bool(exc.args)
exc.args
and isinstance(exc.args[0], str)
and exc.args[0].startswith("Cancelled by cancel scope ")
):
Expand Down

0 comments on commit 9ddcd61

Please sign in to comment.