mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-01-21 07:14:28 +01:00
Adds JSONRPC exceptions to can_connect
This commit is contained in:
@@ -32,7 +32,7 @@ def can_connect_to_bitcoind(bitcoin_cli):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
bitcoin_cli.help()
|
bitcoin_cli.help()
|
||||||
except ConnectionRefusedError:
|
except (ConnectionRefusedError, JSONRPCException):
|
||||||
can_connect = False
|
can_connect = False
|
||||||
|
|
||||||
return can_connect
|
return can_connect
|
||||||
|
|||||||
Reference in New Issue
Block a user