Skip to content

Commit

Permalink
Add missing utf-8 encoding to cache write
Browse files Browse the repository at this point in the history
Fixes #202
  • Loading branch information
DominikDoom committed Jul 22, 2023
1 parent 599ff8a commit 94823b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/model_keyword_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def load_hash_cache():
def update_hash_cache():
global file_needs_update
if file_needs_update:
with open(known_hashes_file, "w") as file:
with open(known_hashes_file, "w", encoding="utf-8") as file:
for name, (hash, mtime) in hash_dict.items():
file.write(f"{name},{hash},{mtime}\n")

Expand Down

0 comments on commit 94823b8

Please sign in to comment.