Skip to content

Commit

Permalink
Merge pull request grpc#6904 from nathanielmanistaatgoogle/unimplemen…
Browse files Browse the repository at this point in the history
…ted-for-cardinality-violation

UNIMPLEMENTED status for cardinality violation
  • Loading branch information
jtattermusch authored Jun 15, 2016
2 parents 6f42fd9 + 0442214 commit 655e28f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/python/grpcio/grpc/_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,9 @@ def unary_request():
if state.client is _CLOSED:
details = '"{}" requires exactly one request message.'.format(
rpc_event.request_call_details.method)
# TODO(5992#issuecomment-220761992): really, what status code?
_abort(
state, rpc_event.operation_call,
cygrpc.StatusCode.unavailable, details)
cygrpc.StatusCode.unimplemented, details)
return None
elif state.client is _CANCELLED:
return None
Expand Down

0 comments on commit 655e28f

Please sign in to comment.