From 3eae1ba9126a6a266ccd7334ba6cdbca6db2d5eb Mon Sep 17 00:00:00 2001 From: Chris Lee <@klee93> Date: Sun, 14 Jul 2019 23:14:03 -0700 Subject: [PATCH] fix release script --- new-release.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/new-release.py b/new-release.py index 9632490..03399e9 100755 --- a/new-release.py +++ b/new-release.py @@ -55,13 +55,14 @@ def cmd(s): def run(s): - proc = subprocess.Popen(cmd(s), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True) + proc = subprocess.Popen(cmd(s), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) ret = proc.wait() - out = proc.communicate()[0] + out, err = proc.communicate() for line in out.split("\n"): debug(ansi_pinky + line + ansi_reset) debug(ansi_pinky + "Exit code: " + str(ret)) if ret != 0: + print(err) raise Exception("Command failed!") return out