I'm trying to encode all addresses from RaiBlocks database, but some of them fail with
Traceback (most recent call last):
File "/home/rai/PyRai/pyrai.py", line 160, in <module>
main()
File "/home/rai/PyRai/pyrai.py", line 164, in main
print(account_xrb(h))
File "/home/rai/PyRai/pyrai.py", line 62, in account_xrb
h.update(account.bytes)
File "/usr/local/lib/python3.5/dist-packages/bitstring.py", line 1347, in _getbytes
raise InterpretError("Cannot interpret as bytes unambiguously - "
bitstring.InterpretError: Cannot interpret as bytes unambiguously - not multiple of 8 bits.
Process finished with exit code 1