Fix unbound error when no wallet data is cached.

This commit is contained in:
tecnovert 2024-11-01 19:24:38 +02:00 committed by tecnovert
parent e28d41ed0c
commit b5f6eb6526

View file

@ -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)
wallets = swap_client.getCachedWalletsInfo({'coin_id': coin_id})
wallet_data = {}
for k in wallets.keys():
w = wallets[k]
if 'error' in w: