Skip to content

Commit

Permalink
Open env files in utf-8 mode explicitly #176
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-n committed Oct 25, 2023
1 parent 69a6e13 commit c24ae95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poethepoet/env/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get(self, envfile_path_str: str) -> Dict[str, str]:
envfile_path = self._project_dir.joinpath(Path(envfile_path_str).expanduser())
if envfile_path.is_file():
try:
with envfile_path.open() as envfile:
with envfile_path.open(encoding="utf-8") as envfile:
result = parse_env_file(envfile.readlines())
except ValueError as error:
message = error.args[0]
Expand Down

0 comments on commit c24ae95

Please sign in to comment.