From bad08d3e398e51f43b70c0e853c66fc2d677b81a Mon Sep 17 00:00:00 2001 From: Christian Van Wambeke Date: Tue, 16 Oct 2018 09:07:34 +0200 Subject: [PATCH] =?utf8?q?fix=20#12327=20Mauvaise=20exception=20apr=C3=A8s?= =?utf8?q?=20un=20sat=20-h=20prepare?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/__init__.py | 3 +-- src/salomeTools.py | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/__init__.py b/src/__init__.py index e3a2ae8..c5535d5 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -71,8 +71,7 @@ def check_config_has_application( config, details = None ): :param config class 'common.pyconf.Config': The config. """ if 'APPLICATION' not in config: - message = _("An APPLICATION is required. Use 'config --list' to get" - " the list of available applications.\n") + message = _("An APPLICATION is required. Use 'config --list' to get the list of available applications.\n") if details : details.append(message) raise SatException( message ) diff --git a/src/salomeTools.py b/src/salomeTools.py index 1ad0b02..01616cd 100755 --- a/src/salomeTools.py +++ b/src/salomeTools.py @@ -461,7 +461,12 @@ class Sat(object): src.printcolors.printcWarning(msg), str(e))) self.options.logs_paths_in_file = None - + + + # do nothing more if help is True + if self.options.help: + return 0 + options_launched = "" res = None try: -- 2.39.2