[Python] ReactorNet.step now translates exceptions appropriately
This commit is contained in:
parent
bf727c2631
commit
8a3bb109d6
1 changed files with 5 additions and 1 deletions
|
|
@ -739,7 +739,11 @@ py_reactornet_step(PyObject* self, PyObject* args)
|
||||||
if (!PyArg_ParseTuple(args, "id:reactornet_step", &n, &t)) {
|
if (!PyArg_ParseTuple(args, "id:reactornet_step", &n, &t)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return Py_BuildValue("d",reactornet_step(n, t));
|
double ret = reactornet_step(n, t);
|
||||||
|
if (ret == DERR) {
|
||||||
|
return reportCanteraError();
|
||||||
|
}
|
||||||
|
return Py_BuildValue("d", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue