aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/idlelib/pyshell.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-xLib/idlelib/pyshell.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py
index edc77ff26f6..e68233a5a41 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