Stopped trying to mess with stuff that we don't know how to handle; I'd rather have uglier log messages and a bot that I can figure out than otherwise.

This commit is contained in:
Jeremy Fincher 2004-02-11 06:02:49 +00:00
parent c04d3632cc
commit d077e9a3fe
2 changed files with 3 additions and 4 deletions

View File

@ -69,7 +69,7 @@ class AsyncoreDriver(asynchat.async_chat, object):
try:
self.connect(self.server)
except socket.error, e:
log.warning('Error connecting to %s: %s',self.irc.server,e.args[1])
log.warning('Error connecting to %s: %s', self.irc.server, e)
self.reconnect(wait=True)
def scheduleReconnect(self):

View File

@ -115,7 +115,7 @@ class SocketDriver(drivers.IrcDriver):
except socket.error, e:
# Same as with _sendIfMsgs.
if e.args[0] != 11:
log.warning('Disconnect from %s: %s', self.server, e.args[1])
log.warning('Disconnect from %s: %s', self.server, e)
self.reconnect(wait=True)
return
self._sendIfMsgs()
@ -140,8 +140,7 @@ class SocketDriver(drivers.IrcDriver):
self.conn.settimeout(conf.supybot.drivers.poll())
except socket.error, e:
if e.args[0] != 115:
log.warning('Error connecting to %s: %s',
self.irc.server, e.args[1])
log.warning('Error connecting to %s: %s', self.irc.server, e)
self.reconnect(wait=True)
self.connected = True
self.reconnectWaitPeriodsIndex = 0