mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
Fix unbound error when no wallet data is cached.
This commit is contained in:
@@ -252,6 +252,7 @@ def page_wallet(self, url_split, post_string):
|
|||||||
|
|
||||||
swap_client.updateWalletsInfo(force_refresh, only_coin=coin_id, wait_for_complete=True)
|
swap_client.updateWalletsInfo(force_refresh, only_coin=coin_id, wait_for_complete=True)
|
||||||
wallets = swap_client.getCachedWalletsInfo({'coin_id': coin_id})
|
wallets = swap_client.getCachedWalletsInfo({'coin_id': coin_id})
|
||||||
|
wallet_data = {}
|
||||||
for k in wallets.keys():
|
for k in wallets.keys():
|
||||||
w = wallets[k]
|
w = wallets[k]
|
||||||
if 'error' in w:
|
if 'error' in w:
|
||||||
|
|||||||
Reference in New Issue
Block a user