fix file open mode
This commit is contained in:
parent
3b86d7f247
commit
01b0a41639
3 changed files with 4 additions and 4 deletions
|
|
@ -153,7 +153,7 @@ def log_output(session, path, args, outfile, uploadpath, cwd=None, logerror=0, a
|
|||
|
||||
if not outfd:
|
||||
try:
|
||||
outfd = open(outfile, 'r')
|
||||
outfd = open(outfile, 'rb')
|
||||
except IOError:
|
||||
# will happen if the forked process has not created the logfile yet
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue