* major stanza improvements

* raise XMPPError in handler to reply with error stanza
* started work on pubsub stanzas
This commit is contained in:
Nathan Fritz
2010-01-05 21:56:48 +00:00
parent 805afa4bc1
commit 093644ffbd
11 changed files with 244 additions and 43 deletions

View File

@@ -281,8 +281,8 @@ class XMLStream(object):
if etype == 'stanza':
try:
handler.run(args[0])
except:
args[0].exception(traceback.format_exc())
except Exception as e:
args[0].exception(e)
elif etype == 'sched':
try:
handler.run(*args)