summaryrefslogtreecommitdiff
path: root/sleekxmpp/exceptions.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-10-25 15:09:56 -0400
committerLance Stout <lancestout@gmail.com>2010-10-25 15:09:56 -0400
commit5bdcd9ef9d74d7921f5579086e6c6d94c0ac7deb (patch)
tree880d2d8f6db8232f1215fb4f6aa346faeaee07e5 /sleekxmpp/exceptions.py
parent2eff35cc7a05ca0978befb6754921e1f6d8c270d (diff)
downloadslixmpp-5bdcd9ef9d74d7921f5579086e6c6d94c0ac7deb.tar.gz
slixmpp-5bdcd9ef9d74d7921f5579086e6c6d94c0ac7deb.tar.bz2
slixmpp-5bdcd9ef9d74d7921f5579086e6c6d94c0ac7deb.tar.xz
slixmpp-5bdcd9ef9d74d7921f5579086e6c6d94c0ac7deb.zip
Made exceptions work.sleek-1.0-Beta21.0-Beta2
Raising an XMPPError exception from an event handler now works, even if from a threaded handler. Added stream tests to verify. We should start using XMPPError, it really makes things simple!
Diffstat (limited to 'sleekxmpp/exceptions.py')
-rw-r--r--sleekxmpp/exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/exceptions.py b/sleekxmpp/exceptions.py
index 980c6b6e..d3988b4a 100644
--- a/sleekxmpp/exceptions.py
+++ b/sleekxmpp/exceptions.py
@@ -38,6 +38,9 @@ class XMPPError(Exception):
element. Same as the additional arguments to
the ET.Element constructor.
"""
+ if extension_args is None:
+ extension_args = {}
+
self.condition = condition
self.text = text
self.etype = etype