From eb0abce2f8d65c097124d05a4f79b6acd6391fa1 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 3 Dec 2012 16:13:07 +0200 Subject: Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper --- Lib/tkinter/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index de85bf9..643026e 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -1421,8 +1421,8 @@ class CallWrapper: if self.subst: args = self.subst(*args) return self.func(*args) - except SystemExit as msg: - raise SystemExit(msg) + except SystemExit: + raise except: self.widget._report_exception() -- cgit v0.12