Skip to content

[3.12] gh-102832: IDLE - update stackviewer open (GH-105528) #105534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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