Apply feedback

pull/21455/head
Pau Freixes 5 years ago
parent 77df7f5f17
commit 833df2b6c8
  1. 6
      src/python/grpcio/grpc/experimental/aio/_interceptor.py

@ -129,10 +129,8 @@ class InterceptedUnaryUnaryCall(_base_call.UnaryUnaryCall):
interceptors: Iterator[UnaryUnaryClientInterceptor], interceptors: Iterator[UnaryUnaryClientInterceptor],
client_call_details: ClientCallDetails, client_call_details: ClientCallDetails,
request: RequestType) -> _base_call.UnaryUnaryCall: request: RequestType) -> _base_call.UnaryUnaryCall:
try:
interceptor = next(interceptors) interceptor = next(interceptors, None)
except StopIteration:
interceptor = None
if interceptor: if interceptor:
continuation = functools.partial(_run_interceptor, interceptors) continuation = functools.partial(_run_interceptor, interceptors)

Loading…
Cancel
Save