Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb0abce

Browse files
committed
Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper
1 parent 41a234a commit eb0abce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/tkinter/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,8 +1421,8 @@ def __call__(self, *args):
14211421
if self.subst:
14221422
args = self.subst(*args)
14231423
return self.func(*args)
1424-
except SystemExit as msg:
1425-
raise SystemExit(msg)
1424+
except SystemExit:
1425+
raise
14261426
except:
14271427
self.widget._report_exception()
14281428

0 commit comments

Comments
 (0)