Remove unused exception check condition

pull/21904/head
Lidi Zheng 5 years ago
parent 37552d3e62
commit 728f5881a2
  1. 5
      src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi

@ -476,11 +476,6 @@ async def _handle_exceptions(RPCState rpc_state, object rpc_coro, object loop):
except _ServerStoppedError:
_LOGGER.info('Aborting RPC due to server stop.')
except Exception as e:
if rpc_state.server._status == AIO_SERVER_STATUS_STOPPED:
if isinstance(ExecuteBatchError, e):
_LOGGER.info('Aborting RPC due to server stop.')
return
_LOGGER.exception('Unexpected [%s] raised by servicer method [%s]' % (
type(e).__name__,
_decode(rpc_state.method()),

Loading…
Cancel
Save