diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 4bcb63295c7..ae6cfb568aa 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -221,7 +221,10 @@ class Misc: try: apply(func, args) finally: - self.deletecommand(tmp[0]) + try: + self.deletecommand(tmp[0]) + except TclError: + pass name = self._register(callit) tmp.append(name) return self.tk.call('after', ms, name)