# HG changeset patch # User Martin Bornhold # Date 2016-08-09 07:27:25 # Node ID 39cc67ccb750b3bf7fdc1cb875a24bd99cc32077 # Parent 277d7136f8377c3bb1727f9bb4b60c66ab75f6fb config: Rename method to clarify what it does. diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -200,7 +200,7 @@ def make_not_found_view(config): - old webob type exceptions get converted to pyramid exceptions - pyramid exceptions are passed to the error handler view """ - def is_vcs_response(request): + def is_vcs_request(request): return True == request.environ.get( 'rhodecode.vcs.skip_error_handling') @@ -210,7 +210,7 @@ def make_not_found_view(config): try: response = pylons_app_as_view(context, request) - if is_webob_error(response) and not is_vcs_response(request): + if is_webob_error(response) and not is_vcs_request(request): return error_handler( webob_to_pyramid_http_response(response), request) except HTTPError as e: # pyramid type exceptions