[PyXMPP] raise and errors in callbacks
test
juice at lemonacid.com
Tue May 13 16:53:14 CEST 2008
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.
More information about the PyXMPP
mailing list