interface.run: catch more exceptions

This commit is contained in:
SomberNight 2018-09-08 02:15:51 +02:00
parent 136df7e5ee
commit ddee03d324
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -152,7 +152,7 @@ class Interface(PrintError):
if not exists:
try:
ca_signed = await self.is_server_ca_signed(ca_sslc)
except (ConnectionRefusedError, socket.gaierror) as e:
except (ConnectionRefusedError, socket.gaierror, aiorpcx.socks.SOCKSFailure) as e:
self.print_error('disconnecting due to: {}'.format(e))
self.exception = e
return