Runtime errors in Python scripts were not being shown; this fix makes them print out to ease correcting errors

llvm-svn: 135395
This commit is contained in:
Enrico Granata 2011-07-18 16:24:10 +00:00
parent e5f440204b
commit 03f16a09bf
1 changed files with 4 additions and 0 deletions

View File

@ -463,22 +463,26 @@ LLDBSwigPythonCallTypeScript
}
else if (PyErr_Occurred ())
{
PyErr_Print();
PyErr_Clear();
}
Py_INCREF (session_dict);
}
else if (PyErr_Occurred())
{
PyErr_Print();
PyErr_Clear();
}
}
else if (PyErr_Occurred())
{
PyErr_Print();
PyErr_Clear();
}
}
else if (PyErr_Occurred ())
{
PyErr_Print();
PyErr_Clear ();
}
return retval;