Skip to content
Browse files

[svn] don't catch exceptions when paste.throw_errors is enabled in th…

…e environ

merged from paste.evalexception.middleware
resolves: #85

--HG--
branch : trunk
  • Loading branch information...
1 parent a14e624 commit 5c71f020d5f831fe92946da56686c92329e91cc5 pjenvey committed Jul 27, 2006
Showing with 2 additions and 0 deletions.
  1. +2 −0 pylons/error.py
View
2 pylons/error.py
@@ -324,6 +324,8 @@ def eval_javascript(self, base_path, counter):
#~ pylons.exposed = True
def respond(self, environ, start_response):
+ if environ.get('paste.throw_errors'):
+ return self.application(environ, start_response)
base_path = request.construct_url(environ, with_path_info=False,
with_query_string=False)
environ['paste.throw_errors'] = True

0 comments on commit 5c71f02

Please sign in to comment.
Something went wrong with that request. Please try again.