From: Christian Van Wambeke Date: Tue, 16 Oct 2018 07:07:34 +0000 (+0200) Subject: fix #12327 Mauvaise exception après un sat -h prepare X-Git-Tag: 5.2.0~9^2~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bad08d3e398e51f43b70c0e853c66fc2d677b81a;p=tools%2Fsat.git fix #12327 Mauvaise exception après un sat -h prepare --- 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: