diff options
Diffstat (limited to 'ipa-python')
-rw-r--r-- | ipa-python/ipautil.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ipa-python/ipautil.py b/ipa-python/ipautil.py index 4b1feb4c9..919d4a6b8 100644 --- a/ipa-python/ipautil.py +++ b/ipa-python/ipautil.py @@ -828,3 +828,15 @@ 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.""" + + try: + primary = e[0] + secondary = e[1] + except: + primary = e[0][0] + secondary = e[0][1] + + return (primary[0], secondary[0]) |