From fadfff495ed329792289425e4b56f86a862bf718 Mon Sep 17 00:00:00 2001 From: vincentcasseau Date: Fri, 2 Aug 2024 10:15:19 +0200 Subject: [PATCH] KCore: minor notifyCheckout --- Cassiopee/KCore/test/notifyCheckout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cassiopee/KCore/test/notifyCheckout.py b/Cassiopee/KCore/test/notifyCheckout.py index 3dc069fb1..df7fab58d 100644 --- a/Cassiopee/KCore/test/notifyCheckout.py +++ b/Cassiopee/KCore/test/notifyCheckout.py @@ -40,8 +40,8 @@ def parseArgs(): # Do not send a notification when everything is OK if not any('FAILED' in log_machine for log_machine in log_entries): - if script_args.email: sys.exit() - else: print("[Checkout Cassiopee] State: OK") + if not script_args.email: print("[Checkout Cassiopee] State: OK") + sys.exit() # Get git info cassiopeeIncDir = '/stck/cassiope/git/Cassiopee/Cassiopee'