default empty array
This commit is contained in:
parent
30a4177247
commit
2db7b159e3
|
@ -891,7 +891,7 @@ if __name__ == '__main__':
|
||||||
if addr in wallet.imported_keys.keys(): _type = "[imported]"
|
if addr in wallet.imported_keys.keys(): _type = "[imported]"
|
||||||
if label is None: label = ''
|
if label is None: label = ''
|
||||||
if options.show_balance:
|
if options.show_balance:
|
||||||
h = wallet.history.get(addr)
|
h = wallet.history.get(addr,[])
|
||||||
ni = no = 0
|
ni = no = 0
|
||||||
for item in h:
|
for item in h:
|
||||||
if item['is_in']: ni += 1
|
if item['is_in']: ni += 1
|
||||||
|
|
Loading…
Reference in New Issue