missing call to clear error indicator

This commit is contained in:
wmayer
2018-06-04 17:48:10 +02:00
parent 9f7ac42217
commit 9ec4d83682

View File

@@ -83,6 +83,7 @@ int QuantityPy::PyInit(PyObject* args, PyObject* /*kwd*/)
int i6=0;
int i7=0;
int i8=0;
PyErr_Clear(); // set by PyArg_ParseTuple()
if (PyArg_ParseTuple(args, "|diiiiiiii", &f,&i1,&i2,&i3,&i4,&i5,&i6,&i7,&i8)) {
if (f != DOUBLE_MAX) {
*self = Quantity(f,Unit(i1,i2,i3,i4,i5,i6,i7,i8));