From 5fe3a394bebbbf6e7c8e9490a990974d10dcb9b3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Mon, 4 May 2020 15:19:10 +0200 Subject: [PATCH] Minor correction of error message --- src/daComposant/daCore/Aidsm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), -- 2.39.2