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:

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
The following code:
throws a following exception:
I did a bit of debugging and it seems that
modein this case isMode.MIXEDhence the error is thrown.It was tested on the latest version of this fork: https://github.com/dlenski/aztec_code_generator