mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
print reason if connection fails
This commit is contained in:
parent
a90f3e0027
commit
fdaf4e42a9
1 changed files with 2 additions and 2 deletions
|
@ -181,10 +181,10 @@ class TcpInterface(threading.Thread):
|
|||
s = socket.socket(res[0], socket.SOCK_STREAM)
|
||||
s.connect(res[4])
|
||||
return s
|
||||
except:
|
||||
except BaseException as e:
|
||||
continue
|
||||
else:
|
||||
print_error("failed to connect", self.host, self.port)
|
||||
print_error("failed to connect", self.host, self.port, str(e))
|
||||
|
||||
|
||||
def get_socket(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue