Skip to content

Commit 18a3bdc

Browse files
authored
Revert "Display attribute_error with msg_error (#441)"
This reverts commit 9853f11.
1 parent 9853f11 commit 18a3bdc

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)")) && !py::isinstance(e.type(), py::eval("type(AttributeError)")))
136+
if( py::isinstance(e.type(), py::eval("type(DeprecationWarning)")) )
137137
{
138138
msg_deprecated() << ss.str();
139139
}else

0 commit comments

Comments
 (0)