Skip to content

Commit 5a12e61

Browse files
Update snakemake_executor_plugin_slurm/utils.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent fd3995a commit 5a12e61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snakemake_executor_plugin_slurm/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
def delete_slurm_environment():
77
"""
88
Function to delete all environment variables
9-
starting with 'SLURM_'. The parent shell, will
10-
still have the this environment. Needed to
9+
starting with 'SLURM_'. The parent shell will
10+
still have this environment. This is needed to
1111
submit within a SLURM job context to avoid
1212
conflicting environments.
1313
"""
1414
for var in os.environ:
1515
if "SLURM" in var:
16-
os.unsetenv(var)
16+
del os.environ[var]

0 commit comments

Comments
 (0)