summaryrefslogtreecommitdiff
path: root/paste/wsgilib.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2007-09-21 03:40:46 +0000
committerianb <devnull@localhost>2007-09-21 03:40:46 +0000
commitca095f39ad9e84ef5cec0d56cd5972ceaf1c6f8e (patch)
treeb661f3fe959f62931348a439e44f3e88144622ab /paste/wsgilib.py
parent774d2b1de3ec629f3b510e7ad62f088c0a2ed49c (diff)
downloadpaste-ca095f39ad9e84ef5cec0d56cd5972ceaf1c6f8e.tar.gz
Simplify the way HTTPExceptionHandler catches HTTPExceptions. You can no longer raise httpexceptions in your app_iter
Diffstat (limited to 'paste/wsgilib.py')
-rw-r--r--paste/wsgilib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py
index 9960587..02dd2dc 100644
--- a/paste/wsgilib.py
+++ b/paste/wsgilib.py
@@ -227,7 +227,7 @@ def catch_errors_app(application, environ, start_response, error_callback_app,
return error_callback_app(environ, start_response, sys.exc_info())
if type(app_iter) in (list, tuple):
# These won't produce exceptions
- if ok_callback:
+ if ok_callback is not None:
ok_callback()
return app_iter
else: