[Python-checkins] [3.12] gh-102832: IDLE - update stackviewer open (GH-105528) (#105534)
terryjreedy
webhook-mailer at python.org
Thu Jun 8 18:29:31 EDT 2023
https://github.com/python/cpython/commit/3eccd95f56f2c360ec39a37e15ce7e9c3f134528
commit: 3eccd95f56f2c360ec39a37e15ce7e9c3f134528
branch: 3.12
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: terryjreedy <tjreedy at udel.edu>
date: 2023-06-08T22:29:24Z
summary:
[3.12] gh-102832: IDLE - update stackviewer open (GH-105528) (#105534)
gh-102832: IDLE - update stackviewer open (GH-105528)
Use 'last_exc' instead of 'last_value' in 3.12/3.
(cherry picked from commit bb3454c1a75c90da3c34c060eb23403fed3fd958)
Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>
files:
M Lib/idlelib/pyshell.py
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 3141b477eff1..6028700356b1 100755
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -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
More information about the Python-checkins
mailing list