-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
guess_schema throwing exception #4
Comments
Hey, thanks for your issue ! |
I'll update the issue when it's done :) |
Are you ok with these changes ? fe01ca3 |
If you want to thrown an exception in that function if it cannot decode it, that seems like a sensible approach, This line: Line 168 in e520680
Is trying to index None (returned by find_proto_schema if it cannot decode it),so maybe that would be the correct place to raise the error? |
When input data can't be decoded by
guess_schema
, (for example because it has a 'group' wire type,it will thrown a
TypeError: 'NoneType' object is not subscriptable
.That seems like it should either throw a relevant error, or return
None
.What is the expected behavior on a failure case?
Minimal code to reproduce it:
The text was updated successfully, but these errors were encountered: