Correct error message

This commit is contained in:
Michał Sałaban 2018-01-18 03:03:18 +01:00
parent ea6d4264a7
commit 582bd1c9e4
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class Address(object):
"""
payment_id = numbers.PaymentID(payment_id)
if not payment_id.is_short():
raise TypeError("Integrated payment ID {0} has more than 64 bits".format(payment_id))
raise TypeError("Payment ID {0} has more than 64 bits and cannot be integrated".format(payment_id))
prefix = 54 if self.is_testnet() else 19
data = bytearray([prefix]) + self._decoded[1:65] + struct.pack('>Q', int(payment_id))
checksum = bytearray(keccak_256(data).digest()[:4])