mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 14:14:22 +01:00
Fixes some bugs based on E2E testing
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from http.client import HTTPException
|
||||
from socket import timeout
|
||||
|
||||
import pisa.conf as conf
|
||||
from pisa.utils.auth_proxy import AuthServiceProxy, JSONRPCException
|
||||
@@ -36,7 +37,7 @@ def can_connect_to_bitcoind():
|
||||
|
||||
try:
|
||||
bitcoin_cli().help()
|
||||
except (ConnectionRefusedError, JSONRPCException, HTTPException):
|
||||
except (timeout, ConnectionRefusedError, JSONRPCException, HTTPException):
|
||||
can_connect = False
|
||||
|
||||
return can_connect
|
||||
|
||||
Reference in New Issue
Block a user