Set parameters working
This commit is contained in:
@@ -133,7 +133,7 @@ namespace pywrap {
|
||||
}
|
||||
int res = PyObject_SetAttrString(instance, key.c_str(), pValue);
|
||||
if (res == -1 && PyErr_Occurred()) {
|
||||
cleanDictionary(args);
|
||||
Py_XDECREF(pValue);
|
||||
errorAbort("Couldn't set attribute " + key + "=" + value.dump());
|
||||
}
|
||||
Py_XDECREF(pValue);
|
||||
|
Reference in New Issue
Block a user