From 582bd1c9e4098296a794682c13771926a0c2cefc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sa=C5=82aban?= Date: Thu, 18 Jan 2018 03:03:18 +0100 Subject: [PATCH] Correct error message --- monero/address.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monero/address.py b/monero/address.py index 9c40b11..914e6f1 100644 --- a/monero/address.py +++ b/monero/address.py @@ -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])