From 8a9b0662a1786dbd217a35bc9d7a2e0536abbfbd Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 15 Jul 2023 00:20:23 +0200 Subject: [PATCH] mint info: catch error (#285) --- cashu/wallet/wallet.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index 8568631..dd5e0b1 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -213,7 +213,11 @@ class LedgerAPI: """ await self._load_mint_keys(keyset_id) await self._load_mint_keysets() - await self._load_mint_info() + try: + await self._load_mint_info() + except Exception as e: + logger.debug(f"Could not load mint info: {e}") + pass if keyset_id: assert keyset_id in self.keysets, f"keyset {keyset_id} not active on mint"