summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-02-15 18:03:01 (GMT)
committerGuido van Rossum <guido@python.org>2000-02-15 18:03:01 (GMT)
commit553fa4432aa39c9f155c29693264e412e0f4a4ce (patch)
treeda5b9d697317206f0ddcddb7d83a78ec77085d4b /Tools
parentf801f3b05c9959a6fa0b7d4912ff17d81a193f18 (diff)
downloadcpython-553fa4432aa39c9f155c29693264e412e0f4a4ce.zip
cpython-553fa4432aa39c9f155c29693264e412e0f4a4ce.tar.gz
cpython-553fa4432aa39c9f155c29693264e412e0f4a4ce.tar.bz2
Correct a typo and remove an unqualified except that was hiding the error.
Diffstat (limited to 'Tools')
-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):