mirror of
https://github.com/aljazceru/python-teos.git
synced 2026-01-20 14:54:22 +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:
|
||||
bitcoin_cli.help()
|
||||
except ConnectionRefusedError:
|
||||
except (ConnectionRefusedError, JSONRPCException):
|
||||
can_connect = False
|
||||
|
||||
return can_connect
|
||||
|
||||
Reference in New Issue
Block a user