diff --git a/avtdl/plugins/execute/run_command.py b/avtdl/plugins/execute/run_command.py index 17a5228..cb3da75 100644 --- a/avtdl/plugins/execute/run_command.py +++ b/avtdl/plugins/execute/run_command.py @@ -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: