Uh, why did I raise? I don't know. Anyway, handle write errors correctly in _sendIfMsgs.

This commit is contained in:
Jeremy Fincher 2003-09-06 07:45:47 +00:00
parent 0314133f56
commit c0eb527117

View File

@ -80,7 +80,9 @@ class SocketDriver(drivers.IrcDriver):
# (11, 'Resource temporarily unavailable') raised if connect # (11, 'Resource temporarily unavailable') raised if connect
# hasn't finished yet. # hasn't finished yet.
if e.args[0] != 11: if e.args[0] != 11:
raise s = 'Disconnect from %s: %s' % (self.server, e.args[1])
debug.msg(s, 'normal')
self.die()
def run(self): def run(self):
#debug.methodNamePrintf(self, 'run') #debug.methodNamePrintf(self, 'run')