diff --git a/Plugin/src/SofaPython3/SceneLoaderPY3.cpp b/Plugin/src/SofaPython3/SceneLoaderPY3.cpp index a5a85109..283e953d 100644 --- a/Plugin/src/SofaPython3/SceneLoaderPY3.cpp +++ b/Plugin/src/SofaPython3/SceneLoaderPY3.cpp @@ -133,7 +133,7 @@ void SceneLoaderPY3::loadSceneWithArguments(const char *filename, ss << "Unable to completely load the scene from file '"<< filename << "'." << msgendl << "Python exception: " << msgendl << " " << e.what(); - if( py::isinstance(e.type(), py::eval("type(DeprecationWarning)")) && !py::isinstance(e.type(), py::eval("type(AttributeError)"))) + if( py::isinstance(e.type(), py::eval("type(DeprecationWarning)")) ) { msg_deprecated() << ss.str(); }else