aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/grpc/_interceptor.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/grpcio/grpc/_interceptor.py')
-rw-r--r--src/python/grpcio/grpc/_interceptor.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/python/grpcio/grpc/_interceptor.py b/src/python/grpcio/grpc/_interceptor.py
index 2a8ddd8ce4..fc0ad77eb9 100644
--- a/src/python/grpcio/grpc/_interceptor.py
+++ b/src/python/grpcio/grpc/_interceptor.py
@@ -135,9 +135,12 @@ class _FailureOutcome(grpc.RpcError, grpc.Future, grpc.Call):
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
raise self._exception
+ def next(self):
+ return self.__next__()
+
class _UnaryOutcome(grpc.Call, grpc.Future):