Skip to content

Commit

Permalink
Fix encoding issue when loading YAML file (#1316)
Browse files Browse the repository at this point in the history
related to #1270

Co-authored-by: [email protected] <[email protected]>
Co-authored-by: João Moura <[email protected]>
  • Loading branch information
3 people authored Sep 22, 2024
1 parent 1bd188e commit 4056508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crewai/project/crew_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, *args, **kwargs):
@staticmethod
def load_yaml(config_path: Path):
try:
with open(config_path, "r") as file:
with open(config_path, "r", encoding="utf-8") as file:
return yaml.safe_load(file)
except FileNotFoundError:
print(f"File not found: {config_path}")
Expand Down

0 comments on commit 4056508

Please sign in to comment.