From b5f6eb65262fed1b731003b8248e34db57a32b45 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Fri, 1 Nov 2024 19:24:38 +0200 Subject: [PATCH] Fix unbound error when no wallet data is cached. --- basicswap/ui/page_wallet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/basicswap/ui/page_wallet.py b/basicswap/ui/page_wallet.py index d4fa07d..0e65513 100644 --- a/basicswap/ui/page_wallet.py +++ b/basicswap/ui/page_wallet.py @@ -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: