From cf322eb531ca6ae4a3852138123a08019563f93e Mon Sep 17 00:00:00 2001 From: Marius van den Beek Date: Thu, 6 Jun 2024 12:47:34 +0200 Subject: [PATCH] restore line.strip() Co-authored-by: Nicola Soranzo --- lib/galaxy/jobs/runners/slurm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/jobs/runners/slurm.py b/lib/galaxy/jobs/runners/slurm.py index b8764ddea7de..db1ed9b3d002 100644 --- a/lib/galaxy/jobs/runners/slurm.py +++ b/lib/galaxy/jobs/runners/slurm.py @@ -220,7 +220,7 @@ def __check_memory_limit(self, efile_path): f.seek(-2048, os.SEEK_END) f.readline() for line in f.readlines(): - stripped_line = unicodify(line) + stripped_line = unicodify(line.strip()) if stripped_line == SLURM_MEMORY_LIMIT_EXCEEDED_MSG: return OUT_OF_MEMORY_MSG elif any(_ in stripped_line for _ in SLURM_MEMORY_LIMIT_EXCEEDED_PARTIAL_WARNINGS):