fix exception syntax
This commit is contained in:
parent
fbbd5cd168
commit
12f156d1f3
1 changed files with 1 additions and 1 deletions
|
|
@ -2130,7 +2130,7 @@ class ClientSession(object):
|
||||||
# Silently try GSSAPI first
|
# Silently try GSSAPI first
|
||||||
if self.gssapi_login(principal, keytab, ccache, proxyuser=proxyuser):
|
if self.gssapi_login(principal, keytab, ccache, proxyuser=proxyuser):
|
||||||
return True
|
return True
|
||||||
except Exception, e:
|
except Exception as e:
|
||||||
if krbV:
|
if krbV:
|
||||||
e_str = ''.join(traceback.format_exception_only(type(e), e))
|
e_str = ''.join(traceback.format_exception_only(type(e), e))
|
||||||
self.logger.debug('gssapi auth failed: %s', e_str)
|
self.logger.debug('gssapi auth failed: %s', e_str)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue