Fixed error line missing from transaction.py

The second instance of the recipients error message is missing a line,
making the message meaningless.
This commit is contained in:
Isaac van Bakel 2017-07-28 20:35:06 +01:00
parent 7db977cdb5
commit cb5125ecfa

View File

@ -638,6 +638,7 @@ class Transaction(object):
for recipient in recipients:
if not isinstance(recipient, tuple) or len(recipient) != 2:
raise ValueError(('Each `recipient` in the list must be a'
' tuple of `([<list of public keys>],'
' <amount>)`'))
pub_keys, amount = recipient
outputs.append(Output.generate(pub_keys, amount))