mirror of
https://github.com/nasa/trick.git
synced 2025-06-18 15:18:18 +00:00
Monte carlo AttributeError's caused by bad configuration still returns zero in master sim #269
The return code from parsing the monte carlo input was always set to zero and not checked. Retured the return code from parsing the input. Added an exit if the input was not parsed correctly.
This commit is contained in:
@ -141,12 +141,13 @@ int Trick::IPPython::init() {
|
||||
//Command to parse the given string.
|
||||
int Trick::IPPython::parse(std::string in_string) {
|
||||
|
||||
int ret ;
|
||||
pthread_mutex_lock(&ip_mutex);
|
||||
in_string += "\n" ;
|
||||
PyRun_SimpleString(in_string.c_str()) ;
|
||||
ret = PyRun_SimpleString(in_string.c_str()) ;
|
||||
pthread_mutex_unlock(&ip_mutex);
|
||||
|
||||
return 0 ;
|
||||
return ret ;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user