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:
Enrico Granata 2014-02-18 20:00:20 +00:00
parent b549019c3c
commit 9422fd0c14

View File

@ -16,7 +16,7 @@ public:
{
if (PyErr_Occurred())
{
if(m_print)
if(m_print && !PyErr_ExceptionMatches(PyExc_SystemExit))
PyErr_Print();
PyErr_Clear();
}