]> granicus.if.org Git - python/commitdiff
Correct a typo and remove an unqualified except that was hiding the error.
authorGuido van Rossum <guido@python.org>
Tue, 15 Feb 2000 18:03:01 +0000 (18:03 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 15 Feb 2000 18:03:01 +0000 (18:03 +0000)
Tools/idle/WindowList.py

index cee435d2f1f158a0ca3c0633c3d1f2715f9e503e..6de3e5855c5103f09dd7fa106e973925aaf15dc8 100644 (file)
@@ -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):