summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>1999-09-26 12:11:50 (GMT)
committerJust van Rossum <just@lettererror.com>1999-09-26 12:11:50 (GMT)
commitcee9a48ea86db14bbb5036f9ec16a72190cb9fec (patch)
treef31ba12c1d4105177ec77a76579e2236b31e6bdc /Mac/Tools
parent532998e00d4b2ba80ba4b26b903e173e1844f2a3 (diff)
downloadcpython-cee9a48ea86db14bbb5036f9ec16a72190cb9fec.zip
cpython-cee9a48ea86db14bbb5036f9ec16a72190cb9fec.tar.gz
cpython-cee9a48ea86db14bbb5036f9ec16a72190cb9fec.tar.bz2
minor cleanup, avoiding rare traceback (jvr)
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/PyDebugger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/PyDebugger.py b/Mac/Tools/IDE/PyDebugger.py
index 48d6ff8..866bc1b 100644
--- a/Mac/Tools/IDE/PyDebugger.py
+++ b/Mac/Tools/IDE/PyDebugger.py
@@ -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()