- Centralize try/except so the entire program is covered. This make it

possible to catch KeyboardInterrupt during the import process.
- Add function for handling python differences with GSSError

434798
This commit is contained in:
Rob Crittenden committed 2008-02-27 10:40:18 -05:00
1 parent d5f5026454
commit ad8096b51f
19 files changed
+1085 -983

No files matched your search

+12
View File
@@ -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])