From e72d834babe0147be3b5eb42a357306f3bc9682f Mon Sep 17 00:00:00 2001 From: free_zed <2160318-free_zed@users.noreply.gitlab.com> Date: Fri, 16 Apr 2021 23:57:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20Catch=20shell=20error=20when=20i?= =?UTF-8?q?nput=20are=20ascending?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit relate to forga/process/fr/embarquement#6 --- tuto-pysdur/pgcd.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tuto-pysdur/pgcd.py b/tuto-pysdur/pgcd.py index 78f7496..e8cf145 100755 --- a/tuto-pysdur/pgcd.py +++ b/tuto-pysdur/pgcd.py @@ -123,7 +123,11 @@ if __name__ == "__main__": doctest.testmod() # SETUPS - ARGS = argparse_setup() + try: + ARGS = argparse_setup() + except SystemExit: + sys.exit() + logging_setup(ARGS) # CHECKS INPUTS