From 799450ccecf1e95f0d273cc11234c6fdbd033a52 Mon Sep 17 00:00:00 2001 From: Maria Lainez <98marialainez@gmail.com> Date: Mon, 12 Feb 2024 12:23:03 +0100 Subject: [PATCH] Solve problem with autocloser in v0.10.8 --- src/osa/scripts/closer.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/osa/scripts/closer.py b/src/osa/scripts/closer.py index 03a36446..5da08dc5 100644 --- a/src/osa/scripts/closer.py +++ b/src/osa/scripts/closer.py @@ -488,7 +488,13 @@ def daily_datacheck(cmd: List[str]): log.debug(f"Executing {stringify(cmd)}") if not options.simulate and not options.test and shutil.which("sbatch") is not None: - job = subprocess.run(cmd, check=True) + job = subprocess.run( + cmd, + encoding="utf-8", + capture_output=True, + text=True, + check=True, + ) job_id = job.stdout.strip() return job_id else: