]> SALOME platform Git repositories - modules/homard.git/blobdiff - tests/test_2.py
Salome HOME
Merge from V6_main 13/12/2012
[modules/homard.git] / tests / test_2.py
index 60110999e3f946842d042cd86512658433118bda..afb705f23624dce3684d05b118cb83f50b5fd15a 100644 (file)
@@ -121,6 +121,7 @@ Copyright EDF-R&D 2010
 ######################################################################################
 
 homard = salome.lcc.FindOrLoadComponent('FactoryServer', 'HOMARD')
+assert homard is not None, "Impossible to load homard engine"
 #
 # Exec of HOMARD-SALOME
 #
@@ -128,9 +129,9 @@ try :
   error_main = homard_exec(salome.myStudy)
   if error_main :
     raise Exception('Pb in homard_exec at iteration %d' %error_main )
-except :
-  raise Exception('Pb in homard_exec at iteration %d' %error_main )
-  sys.exit(1)
+except Exception, e:
+  raise Exception('Pb in homard_exec: '+e.message)
+
 #
 # Test of the result
 #