Correct a typo and remove an unqualified except that was hiding the error.

This commit is contained in:
Guido van Rossum 2000-02-15 18:03:01 +00:00
parent f801f3b05c
commit 553fa4432a
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ class WindowList:
def unregister_callback(self, callback):
try:
self.callback.remove(callback)
except:
self.callbacks.remove(callback)
except ValueError:
pass
def call_callbacks(self):