Adds HTTPException to reasons why pisad cannot connect to bitcoind

This commit is contained in:
Sergi Delgado Segura
2019-07-11 16:40:24 +02:00
parent bed25c03e3
commit da806f5fbf

View File

@@ -1,5 +1,6 @@
from utils.authproxy import JSONRPCException
from pisa.rpc_errors import RPC_INVALID_ADDRESS_OR_KEY
from http.client import HTTPException
def check_tx_in_chain(bitcoin_cli, tx_id, debug, logging, parent='', tx_label='transaction'):
@@ -32,7 +33,7 @@ def can_connect_to_bitcoind(bitcoin_cli):
try:
bitcoin_cli.help()
except (ConnectionRefusedError, JSONRPCException):
except (ConnectionRefusedError, JSONRPCException, HTTPException):
can_connect = False
return can_connect