mirror of https://github.com/python/cpython.git
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:
|
if self.subst:
|
||||||
args = self.subst(*args)
|
args = self.subst(*args)
|
||||||
return self.func(*args)
|
return self.func(*args)
|
||||||
except SystemExit as msg:
|
except SystemExit:
|
||||||
raise SystemExit(msg)
|
raise
|
||||||
except:
|
except:
|
||||||
self.widget._report_exception()
|
self.widget._report_exception()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue