Skip to content

Commit

Permalink
fix comparison syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Sep 10, 2024
1 parent 96b067d commit 815f8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 815f8fe

Please sign in to comment.