Skip to content

Commit 9853f11

Browse files
authored
Display attribute_error with msg_error (#441)
1 parent 4a00b6e commit 9853f11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugin/src/SofaPython3/SceneLoaderPY3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void SceneLoaderPY3::loadSceneWithArguments(const char *filename,
133133
ss << "Unable to completely load the scene from file '"<< filename << "'." << msgendl
134134
<< "Python exception: " << msgendl
135135
<< " " << e.what();
136-
if( py::isinstance(e.type(), py::eval("type(DeprecationWarning)")) )
136+
if( py::isinstance(e.type(), py::eval("type(DeprecationWarning)")) && !py::isinstance(e.type(), py::eval("type(AttributeError)")))
137137
{
138138
msg_deprecated() << ss.str();
139139
}else

0 commit comments

Comments
 (0)