This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pagliaricci.m
Recipients asvetlov, bjs, chris.jerdonek, graingert, pagliaricci.m, yselivanov
Date 2021-10-09.13:16:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
ok, I have modified the snippet of code to better show what I mean.
Still here, the message of the CancelledError exception is lost, but if I
comment line 10, and uncomment line 11, so I throw a ValueError("TEST"),
that "TEST" string will be printed, so the message is not lost.
Again, I just find this behavior very counter-intuitive, and should be VERY
WELL documented in the docs.


On Sat, Oct 9, 2021 at 3:06 PM Chris Jerdonek <>

> Chris Jerdonek <> added the comment:
> I still don't see you calling asyncio.Task.exception() in your new
> attachment...
> ----------
> _______________________________________
> Python tracker <>
> <>
> _______________________________________
File name Uploaded pagliaricci.m, 2021-10-09.13:16:22
Date User Action Args
2021-10-09 13:16:22pagliaricci.msetrecipients: + pagliaricci.m, asvetlov, chris.jerdonek, yselivanov, graingert, bjs
2021-10-09 13:16:22pagliaricci.mlinkissue45390 messages
2021-10-09 13:16:22pagliaricci.mcreate