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.
This commit is contained in:
Graham 2014-05-14 17:47:34 +01:00
parent ef2f5d2978
commit 94187d215a

View File

@ -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: