AttributeError: 'NoneType' object has no attribute 'from_call' #659
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
In
exceptions.py
, ifgrpcio-status
is not installed,rpc_status
is set toNone
python-api-core/google/api_core/exceptions.py
Lines 31 to 43 in d96eb5c
In
_parse_grpc_error_details
, whenrpc_status
isNone
, this leads toAttributeError: '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 notNone
before callingrpc_status.from_call(rpc_exc)
The text was updated successfully, but these errors were encountered: