minor cleanup, avoiding rare traceback (jvr)

This commit is contained in:
Just van Rossum 1999-09-26 12:11:50 +00:00
parent 532998e00d
commit cee9a48ea8
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Debugger(bdb.Bdb):
self.set_quit()
self.clear_tracefuncs()
self.continuewithoutdebugger = 1
if self.w.parent:
if hasattr(self, "w") and self.w.parent:
self.exit_mainloop()
self.resetwidgets()