mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-26 11:25:27 +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:
parent
b549019c3c
commit
9422fd0c14
@ -16,7 +16,7 @@ public:
|
||||
{
|
||||
if (PyErr_Occurred())
|
||||
{
|
||||
if(m_print)
|
||||
if(m_print && !PyErr_ExceptionMatches(PyExc_SystemExit))
|
||||
PyErr_Print();
|
||||
PyErr_Clear();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user