Somebody's client is sending <priority/> with a decimal or alphabetic
cdata :)
Oh well, we'll just ignore it and set the priority to 0.
Should be fixed in the next CVS.
---
James
On 17/06/2005, at 4:40 PM, Lucas Nussbaum wrote:
> Hi,
>
> I get this exception with the latest CVS version :
>
> 06/14/05 - 16:02:16 - User: [EMAIL PROTECTED] - JabberConnection parsed
> presence packet "[EMAIL PROTECTED]" "Pandion" ""
> "None" "" ""
> 06/14/05 - 16:02:16 - Session [EMAIL PROTECTED] - resource "Pandion" has
> come online
> 06/14/05 - 16:02:16 - LegacyConnection: "[EMAIL PROTECTED]" -
> sendLists("Pandion")
> 06/14/05 - 16:02:16 - Session [EMAIL PROTECTED] - resource "Pandion"
> setting "" "" ""
> 06/14/05 - 16:02:16 - Traceback (most recent call last):
> 06/14/05 - 16:02:16 - File
> "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line
> 526, in doSelect
> 06/14/05 - 16:02:17 - _logrun(selectable, _drdw, selectable,
> method, dict)
> 06/14/05 - 16:02:17 - File
> "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 65, in
> callWithLogger
> 06/14/05 - 16:02:17 - callWithContext({"system": lp}, func, *args,
> **kw)
> 06/14/05 - 16:02:17 - File
> "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 52, in
> callWithContext
> 06/14/05 - 16:02:17 - return context.call({ILogContext: newCtx},
> func, *args, **kw)
> 06/14/05 - 16:02:17 - File
> "/usr/lib/python2.3/site-packages/twisted/python/context.py", line 43,
> in callWithContext
> 06/14/05 - 16:02:17 - return func(*args,**kw)
> 06/14/05 - 16:02:17 - --- <exception caught here> ---
> 06/14/05 - 16:02:17 - File
> "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line
> 535, in _doReadOrWrite
> 06/14/05 - 16:02:17 - why = getattr(selectable, method)()
> 06/14/05 - 16:02:17 - File
> "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 255,
> in doRead
> 06/14/05 - 16:02:17 - return self.protocol.dataReceived(data)
> 06/14/05 - 16:02:17 - File
> "/home/jabber/PyMSNt2/src/tlib/xmlstream.py", line 159, in
> dataReceived
> 06/14/05 - 16:02:17 -
> 06/14/05 - 16:02:17 - File
> "/home/jabber/PyMSNt2/src/tlib/domish.py", line 598, in parse
> 06/14/05 - 16:02:17 -
> 06/14/05 - 16:02:17 - File
> "/home/jabber/PyMSNt2/src/tlib/domish.py", line 635, in _onEndElement
> 06/14/05 - 16:02:17 -
> 06/14/05 - 16:02:17 - File
> "/home/jabber/PyMSNt2/src/tlib/xmlstream.py", line 180, in onElement
> 06/14/05 - 16:02:17 -
> 06/14/05 - 16:02:17 - File
> "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line 139,
> in dispatch
> 06/14/05 - 16:02:17 - callbacklist.callback(object)
> 06/14/05 - 16:02:17 - File
> "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line 50,
> in callback
> 06/14/05 - 16:02:17 - methodwrapper(*args, **kwargs)
> 06/14/05 - 16:02:17 - File
> "/usr/lib/python2.3/site-packages/twisted/xish/utility.py", line 34,
> in __call__
> 06/14/05 - 16:02:17 - self.method(*nargs, **nkwargs)
> 06/14/05 - 16:02:17 - File "main.py", line 199, in onPresence
> 06/14/05 - 16:02:17 - s.onPresence(el)
> 06/14/05 - 16:02:17 - File "/home/jabber/PyMSNt2/src/jabw.py", line
> 238, in onPresence
> 06/14/05 - 16:02:17 - self.presenceReceived(froj.userhost(),
> froj.resource, toj.userhost(), toj.resource, priority, ptype, sh
> ow, status)
> 06/14/05 - 16:02:17 - File "/home/jabber/PyMSNt/src/session.py",
> line 196, in presenceReceived
> 06/14/05 - 16:02:17 - self.handleResourcePresence(source,
> resource, to, tor, priority, ptype, show, status)
> 06/14/05 - 16:02:17 - File "/home/jabber/PyMSNt/src/session.py",
> line 215, in handleResourcePresence
> 06/14/05 - 16:02:17 - self.resourceList[resource] =
> SessionResource(show, status, priority)
> 06/14/05 - 16:02:17 - File "/home/jabber/PyMSNt/src/session.py",
> line 262, in __init__
> 06/14/05 - 16:02:17 - self.priority = int(priority)
> 06/14/05 -
> 16:02:17 - exceptions.ValueError: invalid literal for int():
> --
> | Lucas Nussbaum
> | [EMAIL PROTECTED] http://www.lucas-nussbaum.net/ |
> | jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F |
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>