xmr: detect corrupt wallets

This commit is contained in:
nahuhh
2025-04-08 19:58:00 +01:00
parent 96b44bef27
commit 2d88491d48
3 changed files with 32 additions and 5 deletions

View File

@@ -1054,7 +1054,9 @@ class BasicSwap(BaseApp):
elif c in (Coins.XMR, Coins.WOW):
try:
ci.ensureWalletExists()
except Exception as e: # noqa: F841
except Exception as e:
if "invalid signature" in str(e): # wallet is corrupt
raise
self.log.warning(
f"Can't open {ci.coin_name()} wallet, could be locked."
)