tdefault empty array - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2db7b159e35414572a01473bc1a52cd94d2c48b6 DIR parent 30a4177247c5e82671603938bf0be7bd19c58ccb HTML Author: thomasv <thomasv@gitorious> Date: Wed, 21 Dec 2011 17:58:14 +0100 default empty array Diffstat: M client/electrum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/client/electrum.py b/client/electrum.py t@@ -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