Skip to content

Commit 55cee92

Browse files
[Bug] Hunting - Add UTF-8 Encoding for all Read and Write Operations (#3886)
* adding utf-8 flags * reverted open() to read_text with encoding flag * changed ticks * changed ticks (cherry picked from commit bd345d4)
1 parent d344aa0 commit 55cee92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hunting/generate_markdown.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def load_all_toml(base_path: Path) -> List[tuple[Hunt, Path]]:
5050
"""Load all TOML files from the directory and return a list of Hunt configurations and their paths."""
5151
hunts = []
5252
for toml_file in base_path.rglob("*.toml"):
53-
hunt_config = load_toml(toml_file.read_text())
53+
hunt_config = load_toml(toml_file.read_text(encoding="utf-8"))
5454
hunts.append((hunt_config, toml_file))
5555
return hunts
5656

0 commit comments

Comments
 (0)