Commit 553fa443 authored by Guido van Rossum's avatar Guido van Rossum

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

parent f801f3b0
......@@ -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):
......
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