From 1c16b8c470054cdbee47dd289d9dc1376d62588b Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Tue, 1 Oct 2019 13:14:08 -0700 Subject: [PATCH] Bow to the linter --- src/python/grpcio_tests/tests/testing/_server_application.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/grpcio_tests/tests/testing/_server_application.py b/src/python/grpcio_tests/tests/testing/_server_application.py index 2f9a75b1eb6..1dc5e8f3917 100644 --- a/src/python/grpcio_tests/tests/testing/_server_application.py +++ b/src/python/grpcio_tests/tests/testing/_server_application.py @@ -39,10 +39,11 @@ class FirstServiceServicer(services_pb2_grpc.FirstServiceServicer): try: context.abort(grpc.StatusCode.PERMISSION_DENIED, "Denying permission to test abort.") - except Exception as e: + except Exception as e: # pylint: disable=broad-except self._abort_response = _application_common.ABORT_SUCCESS_RESPONSE else: self._abort_status = _application_common.ABORT_FAILURE_RESPONSE + return None # NOTE: For the linter. elif request == _application_common.ABORT_SUCCESS_QUERY: with self._abort_lock: return self._abort_response