From 553fa4432aa39c9f155c29693264e412e0f4a4ce Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 15 Feb 2000 18:03:01 +0000 Subject: [PATCH] Correct a typo and remove an unqualified except that was hiding the error. --- Tools/idle/WindowList.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/idle/WindowList.py b/Tools/idle/WindowList.py index cee435d2f1..6de3e5855c 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): -- 2.40.0