[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
This commit is contained in:
Terrance DeJesus
2024-07-11 18:07:14 -04:00
committed by GitHub
parent 361e97a256
commit bd345d4c19
+1 -1
View File
@@ -50,7 +50,7 @@ def load_all_toml(base_path: Path) -> List[tuple[Hunt, Path]]:
"""Load all TOML files from the directory and return a list of Hunt configurations and their paths."""
hunts = []
for toml_file in base_path.rglob("*.toml"):
hunt_config = load_toml(toml_file.read_text())
hunt_config = load_toml(toml_file.read_text(encoding="utf-8"))
hunts.append((hunt_config, toml_file))
return hunts