From c49a97ef14379abaf91be2e252ccacab150e9090 Mon Sep 17 00:00:00 2001 From: dabura667 Date: Tue, 25 Feb 2014 02:49:51 +0900 Subject: [PATCH] Is_valid assert wasn't displaying anything. Fixed it with a message. --- lib/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index b80ad9e1..bfb6b74b 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -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: