Skip to content

Commit

Permalink
Fix oneof bug
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Nov 13, 2023
1 parent 0d85769 commit c8f0c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brad/grpc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def close(self) -> None:
def start_session(self) -> SessionId:
assert self._stub is not None
result = self._stub.StartSession(b.StartSessionRequest())
msg_kind = result.WhichOneOf("result")
msg_kind = result.WhichOneof("result")
if msg_kind is None:
raise BradClientError(
message="BRAD RPC error: Unspecified start session result."
Expand Down

0 comments on commit c8f0c08

Please sign in to comment.