diff --git a/pubsub/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py b/pubsub/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py index fdc868b4fa3a..5a7c7d754262 100644 --- a/pubsub/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py +++ b/pubsub/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py @@ -264,7 +264,7 @@ def send(self, request): if self._UNARY_REQUESTS: try: self._send_unary_request(request) - except exceptions.GoogleAPICallError as exc: + except exceptions.GoogleAPICallError: _LOGGER.debug( 'Exception while sending unary RPC. This is typically ' 'non-fatal as stream requests are best-effort.',