Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper

This commit is contained in:
Andrew Svetlov 2012-12-03 16:13:07 +02:00
parent 41a234a679
commit eb0abce2f8
1 changed files with 2 additions and 2 deletions

View File

@ -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()