##// END OF EJS Templates
config: Rename method to clarify what it does.
Martin Bornhold -
r607:39cc67cc default
parent child Browse files
Show More
@@ -200,7 +200,7 b' def make_not_found_view(config):'
200 - old webob type exceptions get converted to pyramid exceptions
200 - old webob type exceptions get converted to pyramid exceptions
201 - pyramid exceptions are passed to the error handler view
201 - pyramid exceptions are passed to the error handler view
202 """
202 """
203 def is_vcs_response(request):
203 def is_vcs_request(request):
204 return True == request.environ.get(
204 return True == request.environ.get(
205 'rhodecode.vcs.skip_error_handling')
205 'rhodecode.vcs.skip_error_handling')
206
206
@@ -210,7 +210,7 b' def make_not_found_view(config):'
210
210
211 try:
211 try:
212 response = pylons_app_as_view(context, request)
212 response = pylons_app_as_view(context, request)
213 if is_webob_error(response) and not is_vcs_response(request):
213 if is_webob_error(response) and not is_vcs_request(request):
214 return error_handler(
214 return error_handler(
215 webob_to_pyramid_http_response(response), request)
215 webob_to_pyramid_http_response(response), request)
216 except HTTPError as e: # pyramid type exceptions
216 except HTTPError as e: # pyramid type exceptions
General Comments 0
You need to be logged in to leave comments. Login now