mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 10:48:11 +01:00
xmr: detect corrupt wallets
This commit is contained in:
@@ -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."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user