From: Jean-Philippe ARGAUD Date: Mon, 4 May 2020 13:19:10 +0000 (+0200) Subject: Minor correction of error message X-Git-Tag: V9_5_0b~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5fe3a394bebbbf6e7c8e9490a990974d10dcb9b3;p=modules%2Fadao.git Minor correction of error message --- diff --git a/src/daComposant/daCore/Aidsm.py b/src/daComposant/daCore/Aidsm.py index 47df664..3a56565 100644 --- a/src/daComposant/daCore/Aidsm.py +++ b/src/daComposant/daCore/Aidsm.py @@ -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),