Skip to content

Commit 08f3aad

Browse files
committed
support python 2.5
1 parent ef25d83 commit 08f3aad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

resources/atom_pdb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def main():
7777
except SystemExit:
7878
sys.stdout.write("The program exited via sys.exit(). ")
7979
sys.stdout.write("Exit status: %s\n" % sys.exc_info()[1])
80-
except Exception as inst: # this syntax assumes python >= 2.6
80+
except Exception:
81+
inst = sys.exc_info()[1]
8182
traceback.print_exc()
8283
sys.stdout.write("Uncaught exception %s " % str(type(inst)))
8384
sys.stdout.write("... entering post-mortem debugging\n")

0 commit comments

Comments
 (0)