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:
@@ -541,7 +541,7 @@ else:
|
|||||||
|
|
||||||
resp = kerberos.authGSSClientResponse(self.gss)
|
resp = kerberos.authGSSClientResponse(self.gss)
|
||||||
except kerberos.GSSError as e:
|
except kerberos.GSSError as e:
|
||||||
raise SASLCancelled('Kerberos error: %s' % e.message)
|
raise SASLCancelled('Kerberos error: %s' % e)
|
||||||
if not resp:
|
if not resp:
|
||||||
return b''
|
return b''
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user