diff --git a/Tools/idle/ScriptBinding.py b/Tools/idle/ScriptBinding.py index 12dedb6581b..0e7810b1cca 100644 --- a/Tools/idle/ScriptBinding.py +++ b/Tools/idle/ScriptBinding.py @@ -131,7 +131,8 @@ def run_module_event(self, event, debugger=None): sys.last_traceback) = sys.exc_info() linecache.checkcache() traceback.print_exc() - if not debugger: + if not debugger and \ + self.editwin.getvar("<>"): from StackViewer import StackBrowser sv = StackBrowser(self.root, self.flist) finally: