From: Andrew Svetlov Date: Mon, 3 Dec 2012 14:13:07 +0000 (+0200) Subject: Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper X-Git-Tag: v3.3.1rc1~566^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb0abce2f8d65c097124d05a4f79b6acd6391fa1;p=python Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper --- diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index de85bf909e..643026ebf5 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()