Skip to content

Commit

Permalink
Update snakemake_executor_plugin_slurm/__init__.py
Browse files Browse the repository at this point in the history
introduced "raise Error from exception" as suggested by coderabbit - while not necessary, it can make future error handling a bit more traceable.

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
cmeesters and coderabbitai[bot] authored Sep 1, 2024
1 parent 1ede6fa commit 6f0e3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakemake_executor_plugin_slurm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def cancel_jobs(self, active_jobs: List[SubmittedJobInfo]):
raise WorkflowError(
"Unable to cancel jobs with scancel "
f"(exit code {e.returncode}){msg}"
)
) from e

async def job_stati(self, command):
"""Obtain SLURM job status of all submitted jobs with sacct
Expand Down

0 comments on commit 6f0e3e1

Please sign in to comment.