From 842027f114addca7d59913f5a1525476017cb039 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Fri, 14 Oct 2022 00:49:58 +0200 Subject: [PATCH] pivx: Add expected error string for stopDaemon when .cookie exists. --- basicswap/__init__.py | 2 +- basicswap/basicswap.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/basicswap/__init__.py b/basicswap/__init__.py index 94d2ad8..2b07742 100644 --- a/basicswap/__init__.py +++ b/basicswap/__init__.py @@ -1,3 +1,3 @@ name = "basicswap" -__version__ = "0.11.39" +__version__ = "0.11.40" diff --git a/basicswap/basicswap.py b/basicswap/basicswap.py index 0052099..a29fc58 100644 --- a/basicswap/basicswap.py +++ b/basicswap/basicswap.py @@ -657,7 +657,7 @@ class BasicSwap(BaseApp): time.sleep(i + 1) except Exception as ex: str_ex = str(ex) - if 'Could not connect' in str_ex or 'Could not locate RPC credentials' in str_ex: + if 'Could not connect' in str_ex or 'Could not locate RPC credentials' in str_ex or 'couldn\'t connect to server' in str_ex: if stopping: for i in range(30): # The lock file doesn't get deleted @@ -727,7 +727,7 @@ class BasicSwap(BaseApp): ci.initialiseWallet(root_key) except Exception as e: # < 0.21: sethdseed cannot set a new HD seed while still in Initial Block Download. - self._log.error('initialiseWallet failed: {}'.format(str(e))) + self.log.error('initialiseWallet failed: {}'.format(str(e))) if raise_errors: raise e