mint info: catch error (#285)

This commit is contained in:
callebtc
2023-07-15 00:20:23 +02:00
committed by GitHub
parent 4eb8afe516
commit 8a9b0662a1

View File

@@ -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"