Skip to content

Commit

Permalink
[svn] don't catch exceptions when paste.throw_errors is enabled in th…
Browse files Browse the repository at this point in the history
…e environ

merged from paste.evalexception.middleware
resolves: #85

--HG--
branch : trunk
  • Loading branch information
pjenvey committed Jul 27, 2006
1 parent a14e624 commit 5c71f02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pylons/error.py
Expand Up @@ -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
Expand Down

0 comments on commit 5c71f02

Please sign in to comment.