mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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:
|
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):
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user