Kaydet (Commit) bd8341ee authored tarafından Guido van Rossum's avatar Guido van Rossum

Catch exceptions in final self.destroy() call.

üst bd24eb44
......@@ -55,8 +55,11 @@ class Electrons:
try:
while 1:
self.random_move(self.n)
finally:
except TclError:
try:
self.tk.destroy()
except TclError:
pass
# Main program
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment