Martin Panter <vadmium...@gmail.com> added the comment:

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.

----------
keywords: +3.2regression
nosy: +martin.panter
type:  -> behavior
versions: +Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue29183>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to