Patch applied and so far so good. :) Will follow the debug and see. 

-stian

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars T. Mikkelsen
Sent: 11. august 2006 13:13
To: [email protected]
Subject: Re: [py-transports] Loosing messages

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

Reply via email to