]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Minor correction of error message
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 4 May 2020 13:19:10 +0000 (15:19 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 4 May 2020 13:19:10 +0000 (15:19 +0200)
src/daComposant/daCore/Aidsm.py

index 47df664fe763f98c0ff333e4681e8907acfac410..3a56565f364322eb63ddeab782fb2db2fdf2d6a7 100644 (file)
@@ -500,8 +500,8 @@ class Aidsm(object):
             Parameters = None,
             Script     = None):
         "Mise a jour d'un concept de calcul"
-        if "AlgorithmParameters" not in self.__adaoObject:
-            raise ValueError("No algorithm registred, ask for one before updating parameters")
+        if "AlgorithmParameters" not in self.__adaoObject or self.__adaoObject["AlgorithmParameters"] is None:
+            raise ValueError("\n\nNo algorithm registred, set one before updating parameters or executing\n")
         self.__adaoObject["AlgorithmParameters"].updateParameters(
             asDict        = Parameters,
             asScript      = self.__with_directory(Script),