Skip to content
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

fix exception handling: 'NoneType' object is not iterable #578

Open
vchudnov-g opened this issue Dec 20, 2023 · 1 comment
Open

fix exception handling: 'NoneType' object is not iterable #578

vchudnov-g opened this issue Dec 20, 2023 · 1 comment
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.

Comments

@vchudnov-g
Copy link
Contributor

While debugging another issue, I got the error message

File "[REDACTED]/google/api_core/exceptions.py", line 495, in from_http_response
    filter(
TypeError: 'NoneType' object is not iterable

The offending code is this:

filter(
lambda detail: detail.get("@type", "")
== "type.googleapis.com/google.rpc.ErrorInfo",
details,
)

@vchudnov-g vchudnov-g added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Dec 20, 2023
@vchudnov-g
Copy link
Contributor Author

Should be a trivial fix, but I don't want to context switch yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant