summaryrefslogtreecommitdiff
path: root/paste/evalexception/middleware.py
diff options
context:
space:
mode:
Diffstat (limited to 'paste/evalexception/middleware.py')
-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 = []