- 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:
1 parent
d5f5026454
commit
ad8096b51f
19 files changed
+1085
-983
No files matched your search
@@ -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])
|
||||
Reference in new issue
Block a user