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 Amos.Anderson
Recipients Amos.Anderson, asvetlov, serhiy.storchaka, yselivanov
Date 2021-11-25.00:34:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637800444.99.0.880567147976.issue45894@roundup.psfhosted.org>
In-reply-to
Content
Ah, thank you, Serhiy. I didn't know that, but I see that in the documentation:
https://docs.python.org/3/reference/compound_stmts.html#the-try-statement

But what about the 2nd case I presented where a `RuntimeError` was raised? That's the actual case I'm working on. Based on this:

> If the finally clause raises another exception, the saved exception is set as the context of the new exception.


My expectation is that the two exceptions would be chained.
History
Date User Action Args
2021-11-25 00:34:05Amos.Andersonsetrecipients: + Amos.Anderson, asvetlov, serhiy.storchaka, yselivanov
2021-11-25 00:34:04Amos.Andersonsetmessageid: <1637800444.99.0.880567147976.issue45894@roundup.psfhosted.org>
2021-11-25 00:34:04Amos.Andersonlinkissue45894 messages
2021-11-25 00:34:04Amos.Andersoncreate