Skip to content

Commit

Permalink
[3.12] gh-102832: IDLE - update stackviewer open (GH-105528) (#105534)
Browse files Browse the repository at this point in the history
gh-102832: IDLE - update stackviewer open (GH-105528)

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
miss-islington and terryjreedy authored Jun 8, 2023
1 parent f565fed commit 3eccd95
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 3eccd95

Please sign in to comment.