MULTIPR::TPythonDump(_engine) << "new_parts = " << this << ".partitionneGrain(\""
<< pPartName << "\", " << pNbParts << ", " << pPartitionner << ")";
}
- catch (multipr::RuntimeException& e)
+ catch (std::exception& exc)
{
- e.dump(cout);
- THROW_SALOME_CORBA_EXCEPTION("Unable to partition group", SALOME::INTERNAL_ERROR);
+ THROW_SALOME_CORBA_EXCEPTION(exc.what(), SALOME::INTERNAL_ERROR);
+ }
+ catch (multipr::RuntimeException& exc)
+ {
+ std::ostringstream aStream;
+ exc.dump(aStream);
+ aStream<<ends;
+ THROW_SALOME_CORBA_EXCEPTION(aStream.str().c_str(), SALOME::INTERNAL_ERROR);
}
return mySeq._retn();
std::string aGen = MULTIPR::TPythonDump::MULTIPRGenName();
// set initial part of a script
- std::string aScript ("import salome, SMESH\n");
+ std::string aScript ("import salome\n");
aScript += "import MULTIPR_ORB\n\n";
aScript += "def RebuildData(theStudy):\n";