More explicit error message in Cell.getNet() Python wrapper.
This commit is contained in:
parent
513bc72541
commit
79f3350eba
|
@ -449,19 +449,17 @@ extern "C" {
|
||||||
// Attribute Method : "PyCell_getNet ()"
|
// Attribute Method : "PyCell_getNet ()"
|
||||||
|
|
||||||
static PyObject* PyCell_getNet(PyCell *self, PyObject* args) {
|
static PyObject* PyCell_getNet(PyCell *self, PyObject* args) {
|
||||||
cdebug_log(20,0) << "PyCell_getNet ()" << endl;
|
cdebug_log(20,0) << "PyCell_getNet()" << endl;
|
||||||
METHOD_HEAD ( "Cell.getNet()" )
|
METHOD_HEAD ( "Cell.getNet()" )
|
||||||
|
|
||||||
Net* net = NULL;
|
Net* net = NULL;
|
||||||
|
|
||||||
HTRY
|
HTRY
|
||||||
char* name = NULL;
|
char* name = NULL;
|
||||||
if (!PyArg_ParseTuple(args,"s:Cell.getNet", &name)) {
|
if (not PyArg_ParseTuple(args,"s:Cell.getNet()", &name)) {
|
||||||
|
PyErr_SetString( ProxyError, "Cell.getNet(): Net name argument is not a string." );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
net = cell->getNet(Name(name));
|
net = cell->getNet( Name(name) );
|
||||||
HCATCH
|
HCATCH
|
||||||
|
|
||||||
return PyNet_Link(net);
|
return PyNet_Link(net);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue