summaryrefslogtreecommitdiffstats
path: root/Tools/idle/WindowList.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/idle/WindowList.py')
-rw-r--r--Tools/idle/WindowList.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/idle/WindowList.py b/Tools/idle/WindowList.py
index cee435d..6de3e58 100644
--- a/Tools/idle/WindowList.py
+++ b/Tools/idle/WindowList.py
@@ -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):