*******************************************************************
Click here to view our e-mail legal notice:
http://www.mxit.co.za/pdfs/mxit_legal.pdf or call: +27 21 888 5000
*******************************************************************
Hi,

I've noticed some unhandled exceptions in my debug.log. Here is a summary
(please find the tracebacks at the end):
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'ident'
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
'loginFailed'
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'pytrans'
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
'sendMessage'
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
'sendTypingNotification'

Some of these have previously been mentioned on this list:
http://www.modevia.com/pipermail/py-transports/2006-July/thread.html#3063

I haven't done much investigation yet, but I thought I'll post this so long.

Environment:
CentOS 4.3 (64 bit)
PyMSNt 0.11.2

Regards
Pieter

----------------------------------------------------------------------
Tracebacks (in order of the summary)
----------------------------------------------------------------------

[2006-10-20 09:24:33] Traceback (most recent call last):
          File "/usr/local/lib/python2.5/site-packages/twisted/python/log.py",
line 53, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/local/lib/python2.5/site-packages/twisted/python/log.py",
line 38, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File
"/usr/local/lib/python2.5/site-packages/twisted/python/context.py", line 59, in
callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File
"/usr/local/lib/python2.5/site-packages/twisted/python/context.py", line 37, in
callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File
"/usr/local/lib/python2.5/site-packages/twisted/internet/epollreactor.py", line
199, in _doReadOrWrite
            why = selectable.doRead()
          File "/usr/local/lib/python2.5/site-packages/twisted/internet/tcp.py",
line 349, in doRead
            return self.protocol.dataReceived(data)
          File
"/usr/local/lib/python2.5/site-packages/twisted/protocols/basic.py", line 232,
in dataReceived
            why = self.lineReceived(line)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msn.py", line 819, in
lineReceived
            try: handler(params.split(' '))
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msn.py", line 1139, in
handle_ILN
            self.handleAvatarHelper(msnContact, params[5])
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msn.py", line 1156, in
handleAvatarHelper
            self.contactAvatarChanged(msnContact.userHandle,
binascii.hexlify(b64dec(msnContact.msnobj.sha1d)))
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msnw.py", line 434, in
contactAvatarChanged
            LogEvent(INFO, self.factory.msncon.ident)
        <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
'ident'

----------------------------------------------------------------------

[2006-10-20 10:05:16] Traceback (most recent call last):
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msn.py", line 356, in
handleEndHeaders
            handler(info)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msn.py", line 369, in
login_failed
            self.deferred.callback((LOGIN_FAILURE, unquote(info['cbtxt'])))
          File
"/usr/local/lib/python2.5/site-packages/twisted/internet/defer.py", line 229, in
callback
            self._startRunCallbacks(result)
          File
"/usr/local/lib/python2.5/site-packages/twisted/internet/defer.py", line 294, in
_startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File
"/usr/local/lib/python2.5/site-packages/twisted/internet/defer.py", line 307, in
_runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msn.py", line 1123, in
_passportError
            self.loginFailure("Exception while authenticating: %s" % failure)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msnw.py", line 376, in
loginFailure
            self.factory.msncon.loginFailed(message)
        <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
'loginFailed'

----------------------------------------------------------------------

[2006-10-20 10:07:42] Traceback (most recent call last):
          File "/home/pymsnt/pymsnt-0.11.2/src/main.py", line 399, in main
            reactor.run()
          File
"/usr/local/lib/python2.5/site-packages/twisted/internet/posixbase.py", line
218, in run
            self.mainLoop()
          File
"/usr/local/lib/python2.5/site-packages/twisted/internet/posixbase.py", line
229, in mainLoop
            self.doIteration(t)
          File
"/usr/local/lib/python2.5/site-packages/twisted/internet/epollreactor.py", line
183, in doPoll
            log.callWithLogger(selectable, _drdw, selectable, fd, event, log)
        --- <exception caught here> ---
          File "/usr/local/lib/python2.5/site-packages/twisted/python/log.py",
line 53, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/local/lib/python2.5/site-packages/twisted/python/log.py",
line 38, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File
"/usr/local/lib/python2.5/site-packages/twisted/python/context.py", line 59, in
callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File
"/usr/local/lib/python2.5/site-packages/twisted/python/context.py", line 37, in
callWithContext
            return func(*args,**kw)
          File
"/usr/local/lib/python2.5/site-packages/twisted/internet/epollreactor.py", line
211, in _doReadOrWrite
            self._disconnectSelectable(selectable, why, inRead)
          File
"/usr/local/lib/python2.5/site-packages/twisted/internet/posixbase.py", line
253, in _disconnectSelectable
            selectable.connectionLost(f)
          File "/usr/local/lib/python2.5/site-packages/twisted/internet/tcp.py",
line 557, in connectionLost
            Connection.connectionLost(self, reason)
          File "/usr/local/lib/python2.5/site-packages/twisted/internet/tcp.py",
line 403, in connectionLost
            protocol.connectionLost(reason)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msnw.py", line 658, in
connectionLost
            self.failedMessage(message)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msnw.py", line 687, in
failedMessage
            self.msncon.failedMessage(self.remoteUser, text)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/glue.py", line 449, in
failedMessage
            self.session.pytrans.statistics.stats["FailedMessageCount"] += 1
        <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
'pytrans'

----------------------------------------------------------------------

[2006-10-20 10:07:43] Traceback (most recent call last):
          File "/usr/local/lib/python2.5/site-packages/twisted/python/log.py",
line 53, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/local/lib/python2.5/site-packages/twisted/python/log.py",
line 38, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File
"/usr/local/lib/python2.5/site-packages/twisted/python/context.py", line 59, in
callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File
"/usr/local/lib/python2.5/site-packages/twisted/python/context.py", line 37, in
callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File
"/usr/local/lib/python2.5/site-packages/twisted/internet/epollreactor.py", line
199, in _doReadOrWrite
            why = selectable.doRead()
          File "/usr/local/lib/python2.5/site-packages/twisted/internet/tcp.py",
line 349, in doRead
            return self.protocol.dataReceived(data)
          File
"/usr/local/lib/python2.5/site-packages/twisted/protocols/basic.py", line 240,
in dataReceived
            return self.rawDataReceived(data)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msn.py", line 846, in
rawDataReceived
            self.setLineMode(extra)
          File
"/usr/local/lib/python2.5/site-packages/twisted/protocols/basic.py", line 255,
in setLineMode
            return self.dataReceived(extra)
          File
"/usr/local/lib/python2.5/site-packages/twisted/protocols/basic.py", line 240,
in dataReceived
            return self.rawDataReceived(data)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msn.py", line 848, in
rawDataReceived
            self.gotMessage(m)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/msn/msnw.py", line 744, in
gotMessage
            self.msncon.gotMessage(self.remoteUser, text)
          File "/home/pymsnt/pymsnt-0.11.2/src/legacy/glue.py", line 430, in
gotMessage
            self.session.sendMessage(self.jabberID, fro=source, body=text,
mtype="chat")
        <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
'sendMessage'

----------------------------------------------------------------------

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

----------------------------------------------------------------------

_______________________________________________
py-transports mailing list
[email protected]
http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports

Reply via email to