mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-08 15:04:21 +00:00
Handle exception properly if stubs generation fails
This commit is contained in:
1 file changed
+6
@@ -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