[issue45390] asyncio.Task doesn't propagate CancelledError() exception correctly.

Chris Jerdonek report at bugs.python.org
Sat Oct 9 08:51:00 EDT 2021


Chris Jerdonek <chris.jerdonek at gmail.com> added the comment:

> 2) Now: if I re-raise the asyncio.CancelledError as-is, I lose the message,
if I call the `asyncio.Task.exception()` function.

Re-raise asyncio.CancelledError where? (And what do you mean by "re-raise"?) Call asyncio.Task.exception() where? This isn't part of your example, so it's not clear what you mean exactly.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45390>
_______________________________________


More information about the Python-bugs-list mailing list