[PyXMPP] raise and errors in callbacks

roberto juice at lemonacid.com
Tue May 13 17:37:39 CEST 2008


thank you karol,

it may be related to the same issues i am experiencing then. thank you.

any solution to this? i see it's an open trac of 10 months ago.

r.
  ----- Original Message ----- 
  From: Karol Nowak 
  To: test 
  Cc: pyxmpp at lists.jajcus.net 
  Sent: Tuesday, May 13, 2008 5:21 PM
  Subject: Re: [PyXMPP] raise and errors in callbacks


  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/b344a640/attachment.html 


More information about the PyXMPP mailing list