summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-03 14:13:48 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-03 14:13:48 (GMT)
commit2d727810829d90d17c6e126489a5026528b96619 (patch)
tree47287ba8aa3c187d2191bd2b88455b67b33665b9 /Lib/tkinter
parent5ac31fa0a84f2578a16f1520f80c1d317c7ff2c6 (diff)
parente8544336864736ae1ecd67fb8ec07de42f3f7149 (diff)
downloadcpython-2d727810829d90d17c6e126489a5026528b96619.zip
cpython-2d727810829d90d17c6e126489a5026528b96619.tar.gz
cpython-2d727810829d90d17c6e126489a5026528b96619.tar.bz2
Merge issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper
Diffstat (limited to 'Lib/tkinter')
-rw-r--r--Lib/tkinter/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
index 917eba4..7c51a96 100644
--- a/Lib/tkinter/__init__.py
+++ b/Lib/tkinter/__init__.py
@@ -1440,8 +1440,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()