Skip to content

Commit

Permalink
Fixes #603 (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmsaif committed May 13, 2024
1 parent 27e7f48 commit 23f1041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crewai/task.py
Expand Up @@ -305,7 +305,7 @@ def _save_file(self, result: Any) -> None:
if directory and not os.path.exists(directory):
os.makedirs(directory)

with open(self.output_file, "w") as file: # type: ignore # Argument 1 to "open" has incompatible type "str | None"; expected "int | str | bytes | PathLike[str] | PathLike[bytes]"
with open(self.output_file, "w", encoding='utf-8') as file: # type: ignore # Argument 1 to "open" has incompatible type "str | None"; expected "int | str | bytes | PathLike[str] | PathLike[bytes]"
file.write(result)
return None

Expand Down

0 comments on commit 23f1041

Please sign in to comment.