Skip to content
Snippets Groups Projects
Commit 1fd15705 authored by florent's avatar florent
Browse files

Catch std::exception when executing command

      * src/entity-py.cc : for some reason, catching ExceptionAbstract is not
        sufficient.
parent 60f6ed05
No related branches found
No related tags found
No related merge requests found
......@@ -422,7 +422,7 @@ namespace dynamicgraph {
try {
Value result = command->execute();
return valueToPython(result);
} catch (const ExceptionAbstract& exc) {
} catch (const 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