diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-03 14:13:07 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-03 14:13:07 (GMT) |
commit | eb0abce2f8d65c097124d05a4f79b6acd6391fa1 (patch) | |
tree | 1234218a9a03245c71c01988d14938dde211d254 /Lib | |
parent | 41a234a6791dc3db1a918e0344a55a4e48c211a3 (diff) | |
download | cpython-eb0abce2f8d65c097124d05a4f79b6acd6391fa1.zip cpython-eb0abce2f8d65c097124d05a4f79b6acd6391fa1.tar.gz cpython-eb0abce2f8d65c097124d05a4f79b6acd6391fa1.tar.bz2 |
Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/tkinter/__init__.py | 4 |
1 files 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() |