diff options
author | Graham <github@gra.dk> | 2014-05-14 17:47:34 +0100 |
---|---|---|
committer | Graham <github@gra.dk> | 2014-05-14 17:47:34 +0100 |
commit | 94187d215a87a9acb61dba8d0d0b60fb397f93be (patch) | |
tree | 42e2cb863c738a7d78b19836964e242319ee626d /sleekxmpp/util/sasl | |
parent | ef2f5d29788218f679cd878e4e25bbd61545fef4 (diff) | |
download | slixmpp-94187d215a87a9acb61dba8d0d0b60fb397f93be.tar.gz slixmpp-94187d215a87a9acb61dba8d0d0b60fb397f93be.tar.bz2 slixmpp-94187d215a87a9acb61dba8d0d0b60fb397f93be.tar.xz slixmpp-94187d215a87a9acb61dba8d0d0b60fb397f93be.zip |
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.
Diffstat (limited to 'sleekxmpp/util/sasl')
-rw-r--r-- | sleekxmpp/util/sasl/mechanisms.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |