default empty array

This commit is contained in:
thomasv 2011-12-21 17:58:14 +01:00
parent 30a4177247
commit 2db7b159e3
1 changed files with 1 additions and 1 deletions

View File

@ -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