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 pablogsal
Recipients oleksandr.suvorov, pablogsal
Date 2020-05-22.11:04:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590145471.28.0.0343406253198.issue40728@roundup.psfhosted.org>
In-reply-to
Content
This is expected behaviour and happens because we need to clean the exception variable outside the `except` block to avoid reference cycles. If you need the variable later, you need to do an assignment:

   try:
       1/0
   except Exception as exc:
       e = exc
   finally:
       return e
History
Date User Action Args
2020-05-22 11:04:31pablogsalsetrecipients: + pablogsal, oleksandr.suvorov
2020-05-22 11:04:31pablogsalsetmessageid: <1590145471.28.0.0343406253198.issue40728@roundup.psfhosted.org>
2020-05-22 11:04:31pablogsallinkissue40728 messages
2020-05-22 11:04:31pablogsalcreate