Skip to content

ValueError is thrown on specific byte sequence #7

@VladLupashevskyi

Description

@VladLupashevskyi

The following code:

v = b'\xf7^\x0e\x9b\x04\xe4.\xc6D\xab\x88\x16j\xca\xea\xe3\rb\t<\r\n\xdfK\x86\xcf7\x86,\xccD\xac\x98>?\xedu\x14f\xb0L\xc2\xf1I14\x1f\xcd\x84\x0b\xfd\xd7\xe0\xb7\xbac\xce\x03q\xcbr\x97t%^\x0b_1\x0fw?\xda\xbc\xb7\x1a\x93i\xbe\x06\xd4\xf1]\xf3(\x8f'
AztecCode(v, ec_percent=30)

throws a following exception:

image

I did a bit of debugging and it seems that mode in this case is Mode.MIXED hence the error is thrown.

It was tested on the latest version of this fork: https://github.com/dlenski/aztec_code_generator

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