diff --git a/src/toil/batchSystems/lsf.py b/src/toil/batchSystems/lsf.py index 5d44029af4..fe41cfb687 100644 --- a/src/toil/batchSystems/lsf.py +++ b/src/toil/batchSystems/lsf.py @@ -138,7 +138,7 @@ def coalesce_job_exit_codes(self, batch_job_id_list: list) -> list: logger.debug("Getting coalesced job exit codes via bjobs") bjobs_records = self.parseBjobs( subprocess.run( - args, check=False, stderr=subprocess.STDOUT, encoding="utf-8" + args, check=False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding="utf-8" ).stdout ) if bjobs_records: