Skip to content

Commit

Permalink
fix: satisfiying the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeesters committed Jan 3, 2025
1 parent 1a5c1b1 commit 8d22386
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snakemake_executor_plugin_slurm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ def run_job(self, job: JobExecutorInterface):
gres_string = f" --gres=gpu:{job.resources.gpu_model}:{job.resources.gpu}"
elif job.resources.get("gpu_model") and not job.resources.get("gpu"):
raise WorkflowError(
"GPU model is set, but no GPU number is given. Please set 'gpu' as well."
"GPU model is set, but no GPU number is given. "
"Please set 'gpu' as well."
)
call += (
gres_string if job.resources.get("gres") or job.resources.get("gpu") else ""
Expand Down

0 comments on commit 8d22386

Please sign in to comment.