Spreadsheet: Don't return error message when custom attribute is not found.
This commit is contained in:
parent
1b43ca109b
commit
2621c22409
|
@ -862,10 +862,8 @@ PyObject *SheetPy::getCustomAttributes(const char* attr) const
|
||||||
{
|
{
|
||||||
App::Property * prop = this->getSheetPtr()->getPropertyByName(attr);
|
App::Property * prop = this->getSheetPtr()->getPropertyByName(attr);
|
||||||
|
|
||||||
if (prop == 0) {
|
if (prop == 0)
|
||||||
PyErr_SetString(PyExc_ValueError, "Invalid address or property.");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
return prop->getPyObject();
|
return prop->getPyObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user