Skip to content

Commit

Permalink
In Command.run_subprocess fix stderr not being redirected to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Jul 26, 2024
1 parent 24f3124 commit 587f41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avtdl/plugins/execute/run_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async def run_subprocess(self, args: List[str], task_id: str, working_dir: Path,
with stdout:
stdout.write(f'# [{self.conf.name}.{entity.name}] > {command_line}\n')
stdout.flush()
process = await asyncio.create_subprocess_exec(*args, cwd=working_dir, stdout=stdout, stderr=asyncio.subprocess.STDOUT)
process = await asyncio.create_subprocess_exec(*args, cwd=working_dir, stdout=stdout, stderr=stdout)
except Exception as e:
self.logger.warning(f'[{entity.name}] failed to execute command "{command_line}": {e}')
if entity.report_failed:
Expand Down

0 comments on commit 587f41c

Please sign in to comment.