mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-02 02:18:16 +00:00
Handle exception properly if stubs generation fails
This commit is contained in:
@@ -405,7 +405,10 @@ void PythonContext::GenerateStubs(const rdcarray<rdcstr> &extraPaths)
|
||||
PyObject *retval = PyObject_CallObject(gen, args);
|
||||
|
||||
if(!retval)
|
||||
{
|
||||
qCritical() << "Didn't generate renderdoc stubs";
|
||||
HandleException(NULL);
|
||||
}
|
||||
|
||||
Py_XDECREF(retval);
|
||||
Py_XDECREF(args);
|
||||
@@ -415,7 +418,10 @@ void PythonContext::GenerateStubs(const rdcarray<rdcstr> &extraPaths)
|
||||
retval = PyObject_CallObject(gen, args);
|
||||
|
||||
if(!retval)
|
||||
{
|
||||
qCritical() << "Didn't generate qrenderdoc stubs";
|
||||
HandleException(NULL);
|
||||
}
|
||||
|
||||
Py_XDECREF(retval);
|
||||
Py_XDECREF(args);
|
||||
|
||||
Reference in New Issue
Block a user