diff options
author | ianb <devnull@localhost> | 2006-01-24 07:49:11 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-01-24 07:49:11 +0000 |
commit | 6653f17e27d95bb871771e40b917ab57511d11c9 (patch) | |
tree | 45bee5a226d2476715d58ce5cddc79216e78e23c /paste/evalexception | |
parent | 497ed2a8a955b5468ea527bbc2115ca739f1f15c (diff) | |
download | paste-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.py | 2 |
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 = [] |