basicswap: revert removal of ensureWalletExists

This commit is contained in:
nahuhh 2024-11-27 06:17:46 +00:00
parent ad43ce4095
commit e7a70f1e26

View file

@ -999,6 +999,12 @@ class BasicSwap(BaseApp):
except Exception as e: except Exception as e:
self.log.error("Sanity checks failed: %s", str(e)) self.log.error("Sanity checks failed: %s", str(e))
elif c in (Coins.XMR, Coins.WOW):
try:
ci.ensureWalletExists()
except Exception as e:
self.log.warning("Can't open %s wallet, could be locked.", ci.coin_name())
continue
elif c == Coins.LTC: elif c == Coins.LTC:
ci_mweb = self.ci(Coins.LTC_MWEB) ci_mweb = self.ci(Coins.LTC_MWEB)
is_encrypted, _ = self.getLockedState() is_encrypted, _ = self.getLockedState()