Skip to content
Snippets Groups Projects
Commit 0946fe16 authored by florent's avatar florent
Browse files

Check that argument is string when string is expected in command.

      * src/entity-py.cc.
parent 1fd15705
No related branches found
No related tags found
No related merge requests found
......@@ -226,6 +226,10 @@ namespace dynamicgraph {
return Value(dvalue);
break;
case (Value::STRING) :
if (!PyString_Check(pyObject)) {
throw ExceptionFactory(ExceptionFactory::GENERIC,
"string");
}
svalue = PyString_AsString(pyObject);
return Value(svalue);
break;
......
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