mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Correct a typo and remove an unqualified except that was hiding the error.
This commit is contained in:
parent
f801f3b05c
commit
553fa4432a
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue