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: try:
self.connect(self.server) self.connect(self.server)
except socket.error, e: 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) self.reconnect(wait=True)
def scheduleReconnect(self): def scheduleReconnect(self):

View File

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