[skip ci] App: print affected Python type if serializing via JSON fails
FemGui: add default implementations of __getstate__/__setstate__ to _ViewProviderFemResultMechanical
This commit is contained in:
@@ -109,6 +109,8 @@ std::string PropertyPythonObject::toString() const
|
||||
repr = str.as_std_string("ascii");
|
||||
}
|
||||
catch (Py::Exception&) {
|
||||
Py::String typestr(this->object.type().str());
|
||||
Base::Console().Error("PropertyPythonObject::toString(): failed for %s\n", typestr.as_string().c_str());
|
||||
Base::PyException e; // extract the Python error text
|
||||
e.ReportException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user