-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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:
from protodeep.lib import guess_schema
input_data = b'\x83\x01\x88\x01h\x84\x01\x92\x01\x02\x08i'
schema = guess_schema(data=input_data, bruteforce_index=0)
Metadata
Metadata
Assignees
Labels
No labels