Skip to content

Commit

Permalink
pythongh-102832: IDLE - update stackviewer open (pythonGH-105528)
Browse files Browse the repository at this point in the history
Use 'last_exc' instead of 'last_value' in 3.12/3.
(cherry picked from commit bb3454c)

Co-authored-by: Terry Jan Reedy <[email protected]>
  • Loading branch information
terryjreedy authored and miss-islington committed Jun 8, 2023
1 parent f565fed commit ba93eff
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 ba93eff

Please sign in to comment.