From a186972f09db03c6e8dae2126ad86801cdc27d2f Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 24 Jan 2013 02:45:14 -0800 Subject: Ensure XMPPError.text is a string. --- sleekxmpp/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3