From: apo Date: Mon, 16 Jul 2007 14:58:49 +0000 (+0000) Subject: Remove "import SMESH" Python commmand from "dump python" functionality X-Git-Tag: T_MULTIPR_INDUS_2007-07-23~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7be4cbd99a41a54dcb7037e95415c426c84e480b;p=modules%2Fmultipr.git Remove "import SMESH" Python commmand from "dump python" functionality --- diff --git a/src/MULTIPR/MULTIPR_i.cxx b/src/MULTIPR/MULTIPR_i.cxx index ada3ff3..cfc9ddb 100644 --- a/src/MULTIPR/MULTIPR_i.cxx +++ b/src/MULTIPR/MULTIPR_i.cxx @@ -619,10 +619,16 @@ MULTIPR_ORB::string_array* MULTIPR_Obj_i::partitionneGrain( 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<