Skip to content

Commit

Permalink
pythongh-102832: IDLE - update stackviewer open
Browse files Browse the repository at this point in the history
Use 'last_exc' instead of 'last_value' in 3.12/3.
  • Loading branch information
terryjreedy committed Jun 8, 2023
1 parent 3ee921d commit 9a16b28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/idlelib/pyshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -1369,11 +1369,11 @@ def open_stack_viewer(self, event=None): # -n mode only

from idlelib.stackviewer import StackBrowser
try:
StackBrowser(self.root, sys.last_value, self.flist)
StackBrowser(self.root, sys.last_exc, self.flist)
except:
messagebox.showerror("No stack trace",
"There is no stack trace yet.\n"
"(sys.last_value is not defined)",
"(sys.last_exc is not defined)",
parent=self.text)
return None

Expand Down

0 comments on commit 9a16b28

Please sign in to comment.