diff --git a/src/App/PropertyPythonObject.cpp b/src/App/PropertyPythonObject.cpp index edf46f20c9..e55d3e9825 100644 --- a/src/App/PropertyPythonObject.cpp +++ b/src/App/PropertyPythonObject.cpp @@ -136,7 +136,9 @@ void PropertyPythonObject::fromString(const std::string& repr) state.apply(args); } else if (this->object.hasAttr("__dict__")) { - this->object.setAttr("__dict__", res); + if (!res.isNone()) { + this->object.setAttr("__dict__", res); + } } else { this->object = res;