aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grs/Execute.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grs/Execute.py b/grs/Execute.py
index 7b0e5a2..87667be 100644
--- a/grs/Execute.py
+++ b/grs/Execute.py
@@ -65,7 +65,8 @@ class Execute():
if not timed_out:
# _rc = None if we had a timeout
_rc = proc.returncode
- _file.write('EXIT CODE: %d\n' % _rc)
+ if _rc != 0:
+ _file.write('EXIT CODE: %d\n' % _rc)
if timed_out:
_file.write('TIMEOUT ERROR: %s\n' % cmd)