Skip to content

Commit

Permalink
fix: specify encoding when reading file contents
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Jan 8, 2024
1 parent 4a7b960 commit 0a12a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bugmon/evaluator_configs/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def identify_prefs(attachment_dir: Path) -> Union[Path, None]:
prefs_path = None
for file in attachment_dir.rglob("*"):
if file.suffix == ".js":
if "user_pref" in file.read_text():
if "user_pref" in file.read_text(encoding="utf-8"):
prefs_path = file

return prefs_path
Expand Down

0 comments on commit 0a12a4e

Please sign in to comment.