From 7be4cbd99a41a54dcb7037e95415c426c84e480b Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 16 Jul 2007 14:58:49 +0000 Subject: [PATCH] Remove "import SMESH" Python commmand from "dump python" functionality --- src/MULTIPR/MULTIPR_i.cxx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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<