Skip to content

Commit

Permalink
Fix misused comparison operator
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Jan 5, 2024
1 parent 9c69b54 commit eed8cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/src/core/tasks/TaskInputFileStagingService.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit eed8cd6

Please sign in to comment.