Use sys.exc_info() where needed.

This commit is contained in:
Guido van Rossum 1997-09-29 23:22:12 +00:00
parent c90ad2103e
commit f15d15964b
9 changed files with 38 additions and 32 deletions

View file

@ -379,7 +379,7 @@ class Folder:
if not seqs.has_key(head):
if not msg:
msg = "bad message list %s" % seq
raise Error, msg, sys.exc_traceback
raise Error, msg, sys.exc_info()[2]
msgs = seqs[head]
if not msgs:
raise Error, "sequence %s empty" % head