diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-03-19 16:19:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-19 16:19:59 (GMT) |
commit | 4d1f033986675b883b9ff14588ae6ff78fdde313 (patch) | |
tree | c42dd8be1869a7347482ae210cbe7c76cdffa412 /Lib/idlelib/pyshell.py | |
parent | ccb5af7bfee59b72313ccf1fa2c9b0dca347ac96 (diff) | |
download | cpython-4d1f033986675b883b9ff14588ae6ff78fdde313.zip cpython-4d1f033986675b883b9ff14588ae6ff78fdde313.tar.gz cpython-4d1f033986675b883b9ff14588ae6ff78fdde313.tar.bz2 |
gh-102778: revert changes to idlelib (#102825)
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-x | Lib/idlelib/pyshell.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index edc77ff..e68233a 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -1367,14 +1367,11 @@ class PyShell(OutputWindow): if self.interp.rpcclt: return self.interp.remote_stack_viewer() try: - if hasattr(sys, 'last_exc'): - sys.last_exc.__traceback__ - else: - sys.last_traceback + sys.last_traceback except: messagebox.showerror("No stack trace", "There is no stack trace yet.\n" - "(sys.last_exc and sys.last_traceback are not defined)", + "(sys.last_traceback is not defined)", parent=self.text) return from idlelib.stackviewer import StackBrowser |