From b3c5b0bd295c68022f26b0ac80f6c778804a705f Mon Sep 17 00:00:00 2001
From: Amandine PERRIN <amandine.perrin@pasteur.fr>
Date: Mon, 9 Sep 2019 10:52:39 +0200
Subject: [PATCH] Exit code 1 instead of -1

---
 PanACoTA/utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PanACoTA/utils.py b/PanACoTA/utils.py
index c03408a0..13ca5fdc 100755
--- a/PanACoTA/utils.py
+++ b/PanACoTA/utils.py
@@ -305,9 +305,9 @@ def run_cmd(cmd, error, eof=False, **kwargs):
     except OSError:
         logger.error(error + ": " + "{} does not exist".format(cmd))
         if eof:
-            sys.exit(-1)
+            sys.exit(1)
         else:
-            return -1
+            return 1
     if retcode != 0:
         logger.error(error)
         if eof:
-- 
GitLab