mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Socket: catch connection errors.
This commit is contained in:
parent
8e491eb2b1
commit
537f9b3461
@ -286,7 +286,7 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||
try:
|
||||
address = utils.net.getAddressFromHostname(server[0],
|
||||
attempt=self._attempt)
|
||||
except socket.gaierror as e:
|
||||
except (socket.gaierror, socket.error) as e:
|
||||
drivers.log.connectError(self.currentServer, e)
|
||||
self.scheduleReconnect()
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user