summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-04-13 18:01:58 -0400
committerRob Crittenden <rcritten@redhat.com>2009-04-20 13:44:08 -0400
commita9387b48e66ca93cc8323869de25fe3f777567b6 (patch)
tree0b706b867766924bea0a5cda92060d5378eef58e /ipapython
parente6171404bf0dce7cf08ef3044003190e18c851c9 (diff)
downloadfreeipa-a9387b48e66ca93cc8323869de25fe3f777567b6.tar.gz
freeipa-a9387b48e66ca93cc8323869de25fe3f777567b6.tar.xz
freeipa-a9387b48e66ca93cc8323869de25fe3f777567b6.zip
Handle GSSAPI exceptions more gracefully
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/ipautil.py16
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)