From eed8cd618c17836532c2eb9ac97e8e5478b0090e Mon Sep 17 00:00:00 2001 From: Nathan Freeman Date: Fri, 5 Jan 2024 17:12:56 -0600 Subject: [PATCH] Fix misused comparison operator --- src/engine/src/core/tasks/TaskInputFileStagingService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/src/core/tasks/TaskInputFileStagingService.py b/src/engine/src/core/tasks/TaskInputFileStagingService.py index f5a65b9c..136c6592 100644 --- a/src/engine/src/core/tasks/TaskInputFileStagingService.py +++ b/src/engine/src/core/tasks/TaskInputFileStagingService.py @@ -64,7 +64,7 @@ def stage(self, task: Task): def _create_input_(self, task, input_id, value): try: with open(os.path.join(task.input_dir, input_id), mode="w") as file: - if value == None: value == "" + if value == None: value = "" file.write(str(value)) except Exception as e: raise TaskInputStagingError(f"Error while staging input: {e}")