summaryrefslogtreecommitdiff
path: root/paste/evalexception
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-01-24 07:49:11 +0000
committerianb <devnull@localhost>2006-01-24 07:49:11 +0000
commit6653f17e27d95bb871771e40b917ab57511d11c9 (patch)
tree45bee5a226d2476715d58ce5cddc79216e78e23c /paste/evalexception
parent497ed2a8a955b5468ea527bbc2115ca739f1f15c (diff)
downloadpaste-6653f17e27d95bb871771e40b917ab57511d11c9.tar.gz
Also suppress evalexception middleware when there is an error catcher further up in the request (normal exception catcher already does this)
Diffstat (limited to 'paste/evalexception')
-rw-r--r--paste/evalexception/middleware.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py
index 1ad6df6..3bee724 100644
--- a/paste/evalexception/middleware.py
+++ b/paste/evalexception/middleware.py
@@ -220,6 +220,8 @@ class EvalException(object):
exec_input = wsgiapp()(get_debug_info(exec_input))
def respond(self, environ, start_response):
+ if environ.get('paste.throw_errors'):
+ return self.application(environ, start_response)
base_path = environ['SCRIPT_NAME']
environ['paste.throw_errors'] = True
started = []