Skip to content

guess_schema throwing exceptionΒ #4

@learn-more

Description

@learn-more

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions