From: Guido van Rossum Date: Tue, 15 Feb 2000 18:03:01 +0000 (+0000) Subject: Correct a typo and remove an unqualified except that was hiding the error. X-Git-Tag: v1.6a1~433 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=553fa4432aa39c9f155c29693264e412e0f4a4ce;p=python Correct a typo and remove an unqualified except that was hiding the error. --- 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):