Hi,

[2007-01-15 21:53:11] Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/twisted/python/ log.py", line 53, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/lib/python2.4/site-packages/twisted/python/ log.py", line 38, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/ context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/lib/python2.4/site-packages/twisted/python/ context.py", line 37, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
File "/usr/lib/python2.4/site-packages/twisted/internet/ epollreactor.py", line 199, in _doReadOrWrite
            why = selectable.doRead()
File "/usr/lib/python2.4/site-packages/twisted/internet/ tcp.py", line 348, in doRead
            return self.protocol.dataReceived(data)
File "/usr/lib/python2.4/site-packages/twisted/protocols/ basic.py", line 240, in dataReceived
            return self.rawDataReceived(data)
File "/home/melo/msn-test/PyMSNt/src/legacy/msn/msn.py", line 842, in rawDataReceived
            if not self.checkMessage(m):
File "/home/melo/msn-test/PyMSNt/src/legacy/msn/msn.py", line 2175, in checkMessage
            if self._checkTyping(message, cTypes): return 0
File "/home/melo/msn-test/PyMSNt/src/legacy/msn/msn.py", line 2098, in _checkTyping
            self.gotContactTyping(message)
File "/home/melo/msn-test/PyMSNt/src/legacy/msn/msnw.py", line 762, in gotContactTyping
            self.msncon.gotContactTyping(message.userHandle)
File "/home/melo/msn-test/PyMSNt/src/legacy/glue.py", line 442, in gotContactTyping self.session.sendTypingNotification(self.jabberID, msn2jid(contact, True), True) exceptions.AttributeError: 'NoneType' object has no attribute 'sendTypingNotification'

my experimental patch is this:

Index: legacy/glue.py
===================================================================
--- legacy/glue.py       (revision 811)
+++ legacy/glue.py       (working copy)
@@ -436,6 +436,9 @@
msnGroupchat.groupchat.sendUserInvite(msn2jid (userHandle, True))

        def gotContactTyping(self, contact):
+                # FIX for traceback: session might be missing
+                if not self.session: return
+
                LogEvent(INFO, self.jabberID)
                # Check if the contact has only just started typing
                if not self.contactTyping.has_key(contact):

Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
Jabber ID: [EMAIL PROTECTED]
Use Jabber!


--
HIId: Pedro Melo
SMTP: [EMAIL PROTECTED]
XMPP: [EMAIL PROTECTED]

_______________________________________________
py-transports mailing list
py-transports@blathersource.org
http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports

Reply via email to