mirror of https://github.com/apache/lucene.git
GPG Password checker throws error only when process has not been terminated
This commit is contained in:
parent
e2474be5ea
commit
47e7fbc4dc
|
@ -54,7 +54,7 @@ def runAndSendGPGPassword(command, password):
|
||||||
p.stdin.write('\n'.encode('UTF-8'))
|
p.stdin.write('\n'.encode('UTF-8'))
|
||||||
|
|
||||||
result = p.poll()
|
result = p.poll()
|
||||||
if result != 0:
|
if result is not None:
|
||||||
msg = ' FAILED: %s [see log %s]' % (command, LOG)
|
msg = ' FAILED: %s [see log %s]' % (command, LOG)
|
||||||
print(msg)
|
print(msg)
|
||||||
raise RuntimeError(msg)
|
raise RuntimeError(msg)
|
||||||
|
|
Loading…
Reference in New Issue