diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-04-13 18:01:58 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-04-20 13:44:08 -0400 |
commit | a9387b48e66ca93cc8323869de25fe3f777567b6 (patch) | |
tree | 0b706b867766924bea0a5cda92060d5378eef58e /ipapython | |
parent | e6171404bf0dce7cf08ef3044003190e18c851c9 (diff) | |
download | freeipa-a9387b48e66ca93cc8323869de25fe3f777567b6.tar.gz freeipa-a9387b48e66ca93cc8323869de25fe3f777567b6.tar.xz freeipa-a9387b48e66ca93cc8323869de25fe3f777567b6.zip |
Handle GSSAPI exceptions more gracefully
Diffstat (limited to 'ipapython')
-rw-r--r-- | ipapython/ipautil.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index 57f5dcd9b..df721a518 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -956,14 +956,16 @@ class ItemCompleter: return items def get_gsserror(e): - """A GSSError exception looks differently in python 2.4 than it does - in python 2.5, deal with it.""" + """ + A GSSError exception looks differently in python 2.4 than it does + in python 2.5. Deal with it. + """ try: - primary = e[0] - secondary = e[1] + major = e[0] + minor = e[1] except: - primary = e[0][0] - secondary = e[0][1] + major = e[0][0] + minor = e[0][1] - return (primary[0], secondary[0]) + return (major, minor) |