From 815f8fe7a306ec57ccc98c26558c251ac512b51e Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Tue, 10 Sep 2024 11:56:06 +0200 Subject: [PATCH] fix comparison syntax --- tasks/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/build.py b/tasks/build.py index 96d04fe..5b21458 100644 --- a/tasks/build.py +++ b/tasks/build.py @@ -752,7 +752,7 @@ def create_pr_comment(job, job_id, app_name, pr, gh, symlink): # obtain accelerator from job.accelerator accelerator = job.accelerator accelerator_spec_str = '' - if not accelerator is 'none': + if accelerator != 'none': accelerator_spec = f"{submitted_job_comments_cfg[config.SUBMITTED_JOB_COMMENTS_SETTING_WITH_ACCELERATOR]}" accelerator_spec_str = accelerator_spec.format(accelerator=accelerator)