From 94187d215a87a9acb61dba8d0d0b60fb397f93be Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 14 May 2014 17:47:34 +0100 Subject: don't use the kerberos.GSSError.message attribute Replaced the reference to kerberos.GSSError.message in any raised exception, because: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 and its natural repr is probably the most desirable output. --- sleekxmpp/util/sasl/mechanisms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/util') diff --git a/sleekxmpp/util/sasl/mechanisms.py b/sleekxmpp/util/sasl/mechanisms.py index 36fcb928..6c2aeb04 100644 --- a/sleekxmpp/util/sasl/mechanisms.py +++ b/sleekxmpp/util/sasl/mechanisms.py @@ -541,7 +541,7 @@ else: resp = kerberos.authGSSClientResponse(self.gss) except kerberos.GSSError as e: - raise SASLCancelled('Kerberos error: %s' % e.message) + raise SASLCancelled('Kerberos error: %s' % e) if not resp: return b'' else: -- cgit v1.2.3