mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
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:
parent
c04d3632cc
commit
d077e9a3fe
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user