authzed-py
authzed-py copied to clipboard
Wrap gRPC Exceptions
Depending on whether or not the client is async, it returns entirely different exception types: RpcError and AioRpcError respectively.
The grpcutil module should have an exception type that can be used to catch both of these and handle them equivalently.
Just leaving a comment that with the new SyncClient and AsyncClient it might be okay to just leave the exceptions as different. My guess is most clients will be one or the other and not mixing behavior