diff options
author | ianb <devnull@localhost> | 2005-12-14 21:56:22 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-12-14 21:56:22 +0000 |
commit | d461c3e28d82e4830647bd5b3f6118c543d65dd6 (patch) | |
tree | b8977b75ce4ee887bf5f16a9b541c762850eb1bb /paste/httpexceptions.py | |
parent | e2d3bd09267fec92406b1a4bd548f40dc4fa8137 (diff) | |
download | paste-d461c3e28d82e4830647bd5b3f6118c543d65dd6.tar.gz |
Let HTTPExceptions in the app iterator bubble up for now, because by using the generator we aren't calling the close method like we should
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r-- | paste/httpexceptions.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index 46284bf..16d312b 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -541,8 +541,6 @@ class HTTPExceptionHandler: return start_response(status, headers, exc_info) try: result = self.application(environ, httpexce_start_response) - for chunk in result: - yield chunk except HTTPException, e: if environ.get('paste.debug_suppress_httpexceptions'): raise @@ -555,8 +553,9 @@ class HTTPExceptionHandler: finally: # clean up exc_info = None - for chunk in result: - yield chunk + return result + else: + return result def middleware(*args, **kw): import warnings |