fix universalrules error message string encoding

This commit is contained in:
Kevin Froman 2020-12-25 21:05:39 +00:00
parent fc0744c0b5
commit 22bd63e8db

View File

@ -30,7 +30,8 @@ class BlockTooLarge(BlockRulesException):
def checksum_exists_in_list(checksum: bytes, arr: 'Iterable'): def checksum_exists_in_list(checksum: bytes, arr: 'Iterable'):
if checksum in arr: if checksum in arr:
raise BlockExistsError( raise BlockExistsError(
binascii.hexlify(checksum).decode("utf-8") + " Already exists in given set") binascii.hexlify(
checksum).decode("utf-8") + " Already exists in given set")
def check_block_sanity(raw_bytes): def check_block_sanity(raw_bytes):