Is_valid assert wasn't displaying anything.

Fixed it with a message.
This commit is contained in:
dabura667 2014-02-25 02:49:51 +09:00
parent c5aa69a1f0
commit c49a97ef14
1 changed files with 1 additions and 1 deletions

View File

@ -1333,7 +1333,7 @@ class Wallet:
def make_unsigned_transaction(self, outputs, fee=None, change_addr=None, domain=None ):
for address, x in outputs:
assert is_valid(address)
assert is_valid(address), "Address " + address + " is invalid!"
amount = sum( map(lambda x:x[1], outputs) )
inputs, total, fee = self.choose_tx_inputs( amount, fee, domain )
if not inputs: