mirror of https://github.com/KLayout/klayout.git
Fixing an issue with Python class property setters (only helps debugging, does not solve the issue)
This commit is contained in:
parent
063040695a
commit
629aef6d06
|
|
@ -1285,7 +1285,14 @@ property_setter_impl (int mid, PyObject *self, PyObject *value)
|
|||
|
||||
meth->call (obj, arglist, retlist);
|
||||
|
||||
return get_return_value (p, retlist, meth, heap);
|
||||
PyObject *ret = get_return_value (p, retlist, meth, heap);
|
||||
|
||||
if (ret == NULL) {
|
||||
Py_INCREF (Py_None);
|
||||
ret = Py_None;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue