Message403533
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>
> _______________________________________
> |
File name |
Uploaded |
task_bug.py
|
pagliaricci.m,
2021-10-09.13:16:22
|
|
Date |
User |
Action |
Args |
2021-10-09 13:16:22 | pagliaricci.m | set | recipients:
+ pagliaricci.m, asvetlov, chris.jerdonek, yselivanov, graingert, bjs |
2021-10-09 13:16:22 | pagliaricci.m | link | issue45390 messages |
2021-10-09 13:16:22 | pagliaricci.m | create | |
|