pivx: Add expected error string for stopDaemon when .cookie exists.

This commit is contained in:
tecnovert 2022-10-14 00:49:58 +02:00
parent 6ae8651d1b
commit 842027f114
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
name = "basicswap"
__version__ = "0.11.39"
__version__ = "0.11.40"

View file

@ -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