Socket: catch connection errors.

This commit is contained in:
Valentin Lorentz 2014-08-30 12:10:48 +02:00
parent 8e491eb2b1
commit 537f9b3461

View File

@ -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