Skip to content

Commit

Permalink
restore line.strip()
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
mvdbeek and nsoranzo authored Jun 6, 2024
1 parent c49a9ef commit cf322eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/runners/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit cf322eb

Please sign in to comment.