From 6f0e3e1d830e3b28628f3992059a16f2dd0ee4f0 Mon Sep 17 00:00:00 2001 From: Christian Meesters Date: Sun, 1 Sep 2024 08:47:15 +0200 Subject: [PATCH] Update snakemake_executor_plugin_slurm/__init__.py 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> --- snakemake_executor_plugin_slurm/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snakemake_executor_plugin_slurm/__init__.py b/snakemake_executor_plugin_slurm/__init__.py index 495ef29..d6c8974 100644 --- a/snakemake_executor_plugin_slurm/__init__.py +++ b/snakemake_executor_plugin_slurm/__init__.py @@ -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