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'