From f6488d607120fd784b5841cc7df23f10f4eb4afb Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 20 Apr 2003 01:18:09 +0000 Subject: [PATCH] Prevented deprecation warning and added another logging feature. --- src/twistedDrivers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/twistedDrivers.py b/src/twistedDrivers.py index 673fc3b70..84be942cf 100644 --- a/src/twistedDrivers.py +++ b/src/twistedDrivers.py @@ -46,8 +46,9 @@ class SupyIrcProtocol(LineReceiver): self.transport.write(str(msg)) self.mostRecentCall = reactor.callLater(1, self.checkIrcForMsgs) - def connectionLost(self): + def connectionLost(self, failure): self.mostRecentCall.cancel() + debug.msg(failure.getErrorMessage(), 'normal') def connectionMade(self): self.factory.irc.driver = self