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: ...@@ -55,8 +55,11 @@ class Electrons:
try: try:
while 1: while 1:
self.random_move(self.n) self.random_move(self.n)
finally: except TclError:
self.tk.destroy() try:
self.tk.destroy()
except TclError:
pass
# Main program # 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