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 iritkatriel
Recipients asvetlov, davidmanzanares, iritkatriel, yselivanov
Date 2022-03-09.20:24:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646857470.29.0.824570425362.issue46954@roundup.psfhosted.org>
In-reply-to
Content
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]
History
Date User Action Args
2022-03-09 20:24:30iritkatrielsetrecipients: + iritkatriel, asvetlov, yselivanov, davidmanzanares
2022-03-09 20:24:30iritkatrielsetmessageid: <1646857470.29.0.824570425362.issue46954@roundup.psfhosted.org>
2022-03-09 20:24:30iritkatriellinkissue46954 messages
2022-03-09 20:24:30iritkatrielcreate