Fix encoding for load too

Fixes #204
This commit is contained in:
DominikDoom
2023-07-22 21:15:13 +02:00
parent 1cac893e63
commit 39ea33be9f

View File

@@ -17,7 +17,7 @@ hash_dict = {}
def load_hash_cache():
with open(known_hashes_file, "r") as file:
with open(known_hashes_file, "r", encoding="utf-8") as file:
for line in file:
name, hash, mtime = line.replace("\n", "").split(",")
hash_dict[name] = (hash, mtime)