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 <CAHWeiQVEzW=zeqR_sQO5gc_yOad2bKsdvy=JRXjMB3jbzmvxvQ@mail.gmail.com>
In-reply-to <1633784762.7.0.0585236205227.issue45390@roundup.psfhosted.org>
Content
Chris,
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.

Thanks,
M.

On Sat, Oct 9, 2021 at 3:06 PM Chris Jerdonek <report@bugs.python.org>
wrote:

>
> Chris Jerdonek <chris.jerdonek@gmail.com> added the comment:
>
> I still don't see you calling asyncio.Task.exception() in your new
> attachment...
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue45390>
> _______________________________________
>
Files
File name Uploaded
task_bug.py pagliaricci.m, 2021-10-09.13:16:22
History
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