Author martin.panter
Recipients jleclanche, martin.panter
Date 2018-11-04.11:20:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541330448.95.0.788709270274.issue29183@psf.upfronthosting.co.za>
In-reply-to
Content
Looks like the error handling is broken by Issue 16220, which calls the “BaseHandler.close” method before the exception is caught for the error handler. Perhaps it is better to just close the iterator without messing with the other attributes in the exception case.

I tried various cases in Python 2.6 (without the Issue 16220 change) and the error handling seems better (not masked by double exceptions, no sending a 500 response after the start of the app’s response).

The same problem exists in Python 2, except only the later exception is reported, and the original exception is forgotten.
History
Date User Action Args
2018-11-04 11:20:49martin.pantersetrecipients: + martin.panter, jleclanche
2018-11-04 11:20:48martin.pantersetmessageid: <1541330448.95.0.788709270274.issue29183@psf.upfronthosting.co.za>
2018-11-04 11:20:48martin.panterlinkissue29183 messages
2018-11-04 11:20:48martin.pantercreate