mirror of
https://github.com/basicswap/basicswap.git
synced 2025-01-03 17:29:26 +00:00
basicswap: revert removal of ensureWalletExists
This commit is contained in:
parent
ad43ce4095
commit
e7a70f1e26
1 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue