mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Use sys.exc_info() where needed.
This commit is contained in:
parent
c90ad2103e
commit
f15d15964b
9 changed files with 38 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue