From 537f9b3461836d0c8a6c34958532dd53d2821484 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 30 Aug 2014 12:10:48 +0200 Subject: [PATCH] Socket: catch connection errors. --- src/drivers/Socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/Socket.py b/src/drivers/Socket.py index 9a5ba7da2..ddd70fb5b 100644 --- a/src/drivers/Socket.py +++ b/src/drivers/Socket.py @@ -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