Message414812
This is a duplicate of bpo-45924. The traceback accumulates another frame every time the exception is raised. To see that, change main in your script to
async def main():
task = asyncio.create_task(task_that_raise())
while True:
try:
await task
except Exception as e:
print("<<<<<<<<<<<<<<<<<<<<<<<<<<<")
traceback.print_exception(e)
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>")
and notice that in the output, X grows every time in the line like
[Previous line repeated X more times] |
|
Date |
User |
Action |
Args |
2022-03-09 20:24:30 | iritkatriel | set | recipients:
+ iritkatriel, asvetlov, yselivanov, davidmanzanares |
2022-03-09 20:24:30 | iritkatriel | set | messageid: <1646857470.29.0.824570425362.issue46954@roundup.psfhosted.org> |
2022-03-09 20:24:30 | iritkatriel | link | issue46954 messages |
2022-03-09 20:24:30 | iritkatriel | create | |
|