commit 2db7b159e35414572a01473bc1a52cd94d2c48b6
parent 30a4177247c5e82671603938bf0be7bd19c58ccb
Author: thomasv <thomasv@gitorious>
Date: Wed, 21 Dec 2011 17:58:14 +0100
default empty array
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/electrum.py b/client/electrum.py
@@ -891,7 +891,7 @@ if __name__ == '__main__':
if addr in wallet.imported_keys.keys(): _type = "[imported]"
if label is None: label = ''
if options.show_balance:
- h = wallet.history.get(addr)
+ h = wallet.history.get(addr,[])
ni = no = 0
for item in h:
if item['is_in']: ni += 1