From a9387b48e66ca93cc8323869de25fe3f777567b6 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 13 Apr 2009 18:01:58 -0400 Subject: Handle GSSAPI exceptions more gracefully --- ipapython/ipautil.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'ipapython') 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) -- cgit