App: in PropertyPythonObject::fromString only assign a dict to __dict__ attribute
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user