Skip to content

Commit

Permalink
Merge pull request #421 from Alimektor/enforce-utf8-config-path
Browse files Browse the repository at this point in the history
Update cli.py: enforce UTF-8 for config_path (fix #420)
  • Loading branch information
tfeldmann authored Nov 25, 2024
2 parents 495dcb0 + e3b0812 commit f832c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion organize/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def from_stdin(cls) -> "ConfigWithPath":
def by_name_or_path(cls, name_or_path: Optional[str]) -> "ConfigWithPath":
config_path = find_config(name_or_path=name_or_path)
return cls(
config=config_path.read_text(),
config=config_path.read_text(encoding="utf-8"),
config_path=config_path,
)

Expand Down

0 comments on commit f832c04

Please sign in to comment.