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'))
|
||||
|
||||
result = p.poll()
|
||||
if result != 0:
|
||||
if result is not None:
|
||||
msg = ' FAILED: %s [see log %s]' % (command, LOG)
|
||||
print(msg)
|
||||
raise RuntimeError(msg)
|
||||
|
|
Loading…
Reference in New Issue