mirror of
https://github.com/python/cpython
synced 2024-09-16 01:31:10 +00:00
Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper
This commit is contained in:
parent
41a234a679
commit
eb0abce2f8
|
@ -1421,8 +1421,8 @@ def __call__(self, *args):
|
|||
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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue