From e7a70f1e26397c3563215b9833340a334872b2a9 Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Wed, 27 Nov 2024 06:17:46 +0000 Subject: [PATCH] basicswap: revert removal of ensureWalletExists --- basicswap/basicswap.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/basicswap/basicswap.py b/basicswap/basicswap.py index 79a5d16..23396f0 100644 --- a/basicswap/basicswap.py +++ b/basicswap/basicswap.py @@ -999,6 +999,12 @@ class BasicSwap(BaseApp): except Exception as 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: ci_mweb = self.ci(Coins.LTC_MWEB) is_encrypted, _ = self.getLockedState()