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);
|
||||
|
||||
if (prop == 0) {
|
||||
PyErr_SetString(PyExc_ValueError, "Invalid address or property.");
|
||||
if (prop == 0)
|
||||
return 0;
|
||||
}
|
||||
return prop->getPyObject();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user