mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
Make sure we don't try to print the SystemExit exception, or we will cause the containing process to exit() from under us
llvm-svn: 201600
This commit is contained in:
1 parent
b549019c3c
commit
9422fd0c14
1 file changed
+1
-1
@@ -16,7 +16,7 @@ public:
|
||||
{
|
||||
if (PyErr_Occurred())
|
||||
{
|
||||
if(m_print)
|
||||
if(m_print && !PyErr_ExceptionMatches(PyExc_SystemExit))
|
||||
PyErr_Print();
|
||||
PyErr_Clear();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user