handle case for no Popen.stdin

Similar to the previous commit (cb0f828)
This commit is contained in:
deeplow 2022-07-21 13:48:53 +01:00
parent f99131e30c
commit c69f228261
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -447,6 +447,7 @@ class GlobalCommon(object):
while True:
chunk = f.read(chunk_size)
if len(chunk) > 0:
if p.stdin:
p.stdin.write(chunk)
else:
break