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:
parent
ef2f5d2978
commit
94187d215a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user