diff options
author | Mehrdad Afshari <mehrdada@users.noreply.github.com> | 2018-06-08 08:32:50 -0700 |
---|---|---|
committer | Mehrdad Afshari <mehrdada@users.noreply.github.com> | 2018-06-08 09:14:12 -0700 |
commit | d6547ea1a4b182894fa280bad4d9595b0c2f32f2 (patch) | |
tree | 78948bc92dbf3bb995eb3dc2a4fd521aad952c90 /src/python/grpcio | |
parent | f07f6c9a874f7efe944deb0883970d44080bea16 (diff) |
Change exception type to AssertError
Diffstat (limited to 'src/python/grpcio')
-rw-r--r-- | src/python/grpcio/grpc/_server.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/grpcio/grpc/_server.py b/src/python/grpcio/grpc/_server.py index 042145711b..2761022f21 100644 --- a/src/python/grpcio/grpc/_server.py +++ b/src/python/grpcio/grpc/_server.py @@ -329,7 +329,8 @@ class _RequestIterator(object): request = self._state.request self._state.request = None return request - raise Exception('gRPC Error: Invalid _state') + + raise AssertionError() # should never run def _next(self): with self._state.condition: |