mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 02:12:36 +02:00
handle case for no Popen.stdin
Similar to the previous commit (cb0f828)
This commit is contained in:
parent
f99131e30c
commit
c69f228261
1 changed files with 2 additions and 1 deletions
|
@ -447,7 +447,8 @@ class GlobalCommon(object):
|
|||
while True:
|
||||
chunk = f.read(chunk_size)
|
||||
if len(chunk) > 0:
|
||||
p.stdin.write(chunk)
|
||||
if p.stdin:
|
||||
p.stdin.write(chunk)
|
||||
else:
|
||||
break
|
||||
p.communicate()
|
||||
|
|
Loading…
Reference in a new issue