summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-01-24 02:45:14 -0800
committerLance Stout <lancestout@gmail.com>2013-01-24 02:45:14 -0800
commita186972f09db03c6e8dae2126ad86801cdc27d2f (patch)
tree536efbe9458184b6d1f240ae63a2ee33b47d41f1
parent751628401ebc23fd8919c99758db2878817c0056 (diff)
downloadslixmpp-a186972f09db03c6e8dae2126ad86801cdc27d2f.tar.gz
slixmpp-a186972f09db03c6e8dae2126ad86801cdc27d2f.tar.bz2
slixmpp-a186972f09db03c6e8dae2126ad86801cdc27d2f.tar.xz
slixmpp-a186972f09db03c6e8dae2126ad86801cdc27d2f.zip
Ensure XMPPError.text is a string.
-rw-r--r--sleekxmpp/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/exceptions.py b/sleekxmpp/exceptions.py
index 8036532d..8a2aa75c 100644
--- a/sleekxmpp/exceptions.py
+++ b/sleekxmpp/exceptions.py
@@ -42,7 +42,7 @@ class XMPPError(Exception):
Defaults to ``True``.
"""
- def __init__(self, condition='undefined-condition', text=None,
+ def __init__(self, condition='undefined-condition', text='',
etype='cancel', extension=None, extension_ns=None,
extension_args=None, clear=True):
if extension_args is None: