Skip to content

guess_schema throwing exception #4

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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