From 4ef4457e2cc2c93808704269bc4d7de94c89300f Mon Sep 17 00:00:00 2001 From: Krishna Chilleri <149612138+kchilleri@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:35:01 -0600 Subject: [PATCH] fix pylint error that did not show up when checking before committing --- beeflow/common/worker/flux_worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beeflow/common/worker/flux_worker.py b/beeflow/common/worker/flux_worker.py index a78a14453..29f4ff41b 100644 --- a/beeflow/common/worker/flux_worker.py +++ b/beeflow/common/worker/flux_worker.py @@ -112,8 +112,8 @@ def build_jobspec(self, task): jobspec.stderr = f'{task_save_path}/{task.name}-{task.id}.err' jobspec.environment = dict(os.environ) # Save the script for later reference - with open(f'{task_save_path}/{task.name}-{task.id}.sh', 'w', encoding='utf-8') as file_path: - file_path.write(script) + with open(f'{task_save_path}/{task.name}-{task.id}.sh', 'w', encoding='utf-8') as f_path: + f_path.write(script) return jobspec def submit_task(self, task):