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
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ class BlockTooLarge(BlockRulesException):
def checksum_exists_in_list(checksum: bytes, arr: 'Iterable'):
if checksum in arr:
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):