######################################################################################
homard = salome.lcc.FindOrLoadComponent('FactoryServer', 'HOMARD')
+assert homard is not None, "Impossible to load homard engine"
+
#
# Exec of HOMARD-SALOME
#
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
#