Thanks. Applied that to svn trunk. I've also fixed twistfix.parseText
so that it will return None for parseText("0")
---
James
On 11/08/2006, at 9:13 PM, Lars T. Mikkelsen wrote:
> Hi Stian,
>
> On Fri, Aug 11, 2006 at 10:45:05AM +0200, Stian B. Barmen wrote:
>> I changed the transport setting in ejabberd and have not been able to
>> recreate the error since. The new problem I get now is that when I
>> log on to
>> the MSN network I get the following message and then a disconnect:
>>
>> Disconnected from MSN servers: [Failure instance: Traceback
>> (failure with no
>> frames): exceptions.TypeError: int() argument must be a string or
>> a number
>> ]
>
> I think you receive the error message due to this traceback:
>
>> [2006-08-11 10:39:50] Traceback (most recent call last):
> [snip]
>> File "/usr/local/pymsnt/src/legacy/msn/msn.py", line
>> 1170, in
>> handle_NLN
>> self.handleAvatarHelper(msnContact, params[4])
>> File "/usr/local/pymsnt/src/legacy/msn/msn.py", line
>> 1146, in
>> handleAvatarHelper
>> msnobj = MSNObject(unquote(msnobjStr))
>> File "/usr/local/pymsnt/src/legacy/msn/msn.py", line
>> 478, in
>> __init__
>> self.parse(s)
>> File "/usr/local/pymsnt/src/legacy/msn/msn.py", line
>> 524, in parse
>> self.size = int(e.getAttribute("Size"))
>> exceptions.TypeError: int() argument must be a string or a
>> number
>
> Please try applying the attached patch and see if it fixes the
> issue - I
> haven't been able to verify it myself, as I only get few of these
> tracebacks per day.
>
> Best regards,
> Lars
> <msnobject.patch>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports