aboutsummaryrefslogtreecommitdiff
path: root/google/api_core/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'google/api_core/exceptions.py')
-rw-r--r--google/api_core/exceptions.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/google/api_core/exceptions.py b/google/api_core/exceptions.py
index fdb2109..6b1b6f7 100644
--- a/google/api_core/exceptions.py
+++ b/google/api_core/exceptions.py
@@ -487,9 +487,14 @@ def _is_informative_grpc_error(rpc_exc):
def _parse_grpc_error_details(rpc_exc):
- status = rpc_status.from_call(rpc_exc)
+ try:
+ status = rpc_status.from_call(rpc_exc)
+ except NotImplementedError: # workaround
+ return []
+
if not status:
return []
+
possible_errors = [
error_details_pb2.BadRequest,
error_details_pb2.PreconditionFailure,