Correct a typo and remove an unqualified except that was hiding the error.
This commit is contained in:
parent
f801f3b05c
commit
553fa4432a
|
@ -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…
Reference in New Issue