Re: Kaa r4413 - trunk/base/src

Dirk Meyer <[email protected]>
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>
Hi,

On 30.09.2010 00:10, Jason Tackaberry wrote:
> On Wed, 2010-09-29 at 21:40 +0200, Dirk Meyer wrote:
>> Log:
>> Catch problems when unpickeling the exception. This is needed
>> because for some reason urllib2 Exceptions cannot be recreated
> [...]
>> +            try:
>> +                exc_value, stack = cPickle.loads(payload)
>> +            except Exception, e:
>> +                exc_value, stack = e, ''
> 
> This is dubious.  What exception were you seeing?  I'd like to try to
> fix it properly.

I know it is dubious. Maybe you can reproduce it. It happened when I
wanted to download something in a thread using urllib2. This failed, the
thread raises an urllib2 error, that gets to a client using kaa.rpc. On
the client side I get an exception that the urllib2 error needs more
parameter in __init__. If you can't reproduce it, I will try to make a
simple example. It happend using the beacon feedmanager.


Dischi

-- 
In the Beginning

It was a nice day.
        -- (Terry Pratchett & Neil Gaiman, Good Omens)

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.