[PyXMPP] raise and errors in callbacks

Karol Nowak grywacz at gmail.com
Tue May 13 17:21:44 CEST 2008


Hi.

Maybe take a look at this: http://pyxmpp.jajcus.net/trac/ticket/14


Karol

On Tue, May 13, 2008 at 4:53 PM, test <juice at lemonacid.com> wrote:

> hello,
>
> first of all thank you for this great component. i have a very basic noob
> question here.
>
> i'm using the echobot.py example, and modified jsut to raise an error when
> session starts:
>
> def session_started(self):
>        JabberClient.session_started(self)
>        raise TypeError
>
> though, no error is being raised. seems that the raise statement in the
> JabberClient callbacks does not produce any results.
>
> furthermore, the same thing is then propagated in all class instances
> eventually created under the callbacks, for instance:
>
> def session_started(self):
>        JabberClient.session_started(self)
>        dr = DR()
>
> where
>
> class DR():
>        def __init__(self):
>                raise TypeError
>                print "ok"
>
> raise statement is ignored, and "ok" is not printed.
>
> am i missing something?
>
> thank you,
>
> r.
>
> _______________________________________________
> PyXMPP mailing list
> PyXMPP at lists.jajcus.net
> https://lists.jajcus.net/mailman/listinfo/pyxmpp
>



-- 
pozdrawiam
Karol 'grzywacz' Nowak
http://knowak.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jajcus.net/pipermail/pyxmpp/attachments/20080513/99387d27/attachment.html 


More information about the PyXMPP mailing list