summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Bicking <ian@ianbicking.org>2005-09-27 17:50:27 +0000
committerIan Bicking <ian@ianbicking.org>2005-09-27 17:50:27 +0000
commita2a33505e29eb8aeaab99e922ba5309dd48c26f9 (patch)
tree0df95f764aa9601103bb4833ea8f5f305e39b17c
parent3e9160a4851b3ca63a2dbaf5bfa629357c8237ea (diff)
downloadpaste-git-a2a33505e29eb8aeaab99e922ba5309dd48c26f9.tar.gz
Minor bug
-rw-r--r--paste/wsgilib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py
index 5ccab10..189c69d 100644
--- a/paste/wsgilib.py
+++ b/paste/wsgilib.py
@@ -94,7 +94,8 @@ def catch_errors(application, environ, start_response, error_callback,
raise
if type(app_iter) in (list, tuple):
# These won't produce exceptions
- ok_callback()
+ if ok_callback:
+ ok_callback()
return app_iter
else:
return _wrap_app_iter(app_iter, error_callback, ok_callback)