summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-06-08 22:29:24 (GMT)
committerGitHub <noreply@github.com>2023-06-08 22:29:24 (GMT)
commit3eccd95f56f2c360ec39a37e15ce7e9c3f134528 (patch)
tree1d399ef9430a628bd073ee01dfcc0a1ab951e4cc /Lib/idlelib
parentf565fed548dde2a4b36e1e91059ad0fb19697a2d (diff)
downloadcpython-3eccd95f56f2c360ec39a37e15ce7e9c3f134528.zip
cpython-3eccd95f56f2c360ec39a37e15ce7e9c3f134528.tar.gz
cpython-3eccd95f56f2c360ec39a37e15ce7e9c3f134528.tar.bz2
[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@udel.edu>
Diffstat (limited to 'Lib/idlelib')
-rwxr-xr-xLib/idlelib/pyshell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index 3141b47..6028700 100755
--- a/Lib/idlelib/pyshell.py
+++ b/Lib/idlelib/pyshell.py
@@ -1369,11 +1369,11 @@ class PyShell(OutputWindow):
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