-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map gRPC errors in datastore run_query onto 'google.cloud.exceptions'. #2496
Conversation
It may be worth putting a try/except around every method and using the mapping provided in |
Yeah, this LGTM to me as a temporary fix, but I feel it'd be more thorough to do that. |
Filed #2497 |
|
||
exc_state = _RPCState((), None, None, StatusCode.CANCELLED, None) | ||
exc = GrpcRendezvous(exc_state, None, None, None) | ||
self._run_query_failure_helper(exc, GrpcRendezvous) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@tseaver Sorry merged based on @jonparrott LGTM. Happy to revert / quick fix if you have concerns |
No worries. |
Catching gRPC error in datastore run_query and converting to our error.
Fixes #2494.