Skip to content
Snippets Groups Projects
Commit 821dcee5 authored by florent's avatar florent
Browse files

Catch std::exception instead of dynamicgraph::ExceptionFactory.

      * src/entity-py.cc.
parent 7eef2f62
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,8 @@ namespace dynamicgraph {
try {
obj = dynamicgraph::g_factory.newEntity(std::string(className),
std::string(instanceName));
} catch (dynamicgraph::ExceptionFactory& exc) {
PyErr_SetString(error, exc.getStringMessage().c_str());
} catch (std::exception& exc) {
PyErr_SetString(error, exc.what());
return NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment