From 47e7fbc4dcf73486a58138b110ffa3b5191d651a Mon Sep 17 00:00:00 2001 From: Anshum Gupta Date: Mon, 28 Aug 2017 14:46:27 -0700 Subject: [PATCH] GPG Password checker throws error only when process has not been terminated --- dev-tools/scripts/buildAndPushRelease.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/scripts/buildAndPushRelease.py b/dev-tools/scripts/buildAndPushRelease.py index 7044e43bd38..1143ebfbd34 100644 --- a/dev-tools/scripts/buildAndPushRelease.py +++ b/dev-tools/scripts/buildAndPushRelease.py @@ -54,7 +54,7 @@ def runAndSendGPGPassword(command, password): p.stdin.write('\n'.encode('UTF-8')) result = p.poll() - if result != 0: + if result is not None: msg = ' FAILED: %s [see log %s]' % (command, LOG) print(msg) raise RuntimeError(msg)