Closed
Description
In exceptions.py
, if grpcio-status
is not installed, rpc_status
is set to None
python-api-core/google/api_core/exceptions.py
Lines 31 to 43 in d96eb5c
In _parse_grpc_error_details
, when rpc_status
is None
, this leads to AttributeError: 'NoneType' object has no attribute 'from_call'
python-api-core/google/api_core/exceptions.py
Lines 562 to 566 in d96eb5c
We should add a check to make sure rpc_status
is not None
before calling rpc_status.from_call(rpc_exc)