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],
client_call_details: ClientCallDetails,
request: RequestType) -> _base_call.UnaryUnaryCall:
try:
interceptor = next(interceptors)
except StopIteration:
interceptor = None
interceptor = next(interceptors, None)
if interceptor:
continuation = functools.partial(_run_interceptor, interceptors)

Loading…
Cancel
Save