mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +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:
|
while True:
|
||||||
chunk = f.read(chunk_size)
|
chunk = f.read(chunk_size)
|
||||||
if len(chunk) > 0:
|
if len(chunk) > 0:
|
||||||
p.stdin.write(chunk)
|
if p.stdin:
|
||||||
|
p.stdin.write(chunk)
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
p.communicate()
|
p.communicate()
|
||||||
|
|
Loading…
Reference in a new issue