mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-17 18:25:26 -04:00
Add native Windows compatibility layer
This commit is contained in:
+2
-2
@@ -140,7 +140,7 @@ def load_settings() -> dict:
|
||||
if _settings_cache and (now - _settings_cache[0]) < _CACHE_TTL:
|
||||
return _settings_cache[1]
|
||||
try:
|
||||
with open(SETTINGS_FILE, "r") as f:
|
||||
with open(SETTINGS_FILE, "r", encoding="utf-8") as f:
|
||||
saved = json.load(f)
|
||||
merged = {**DEFAULT_SETTINGS, **saved}
|
||||
except (FileNotFoundError, json.JSONDecodeError):
|
||||
@@ -205,7 +205,7 @@ def load_features() -> dict:
|
||||
if _features_cache and (now - _features_cache[0]) < _CACHE_TTL:
|
||||
return _features_cache[1]
|
||||
try:
|
||||
with open(FEATURES_FILE, "r") as f:
|
||||
with open(FEATURES_FILE, "r", encoding="utf-8") as f:
|
||||
saved = json.load(f)
|
||||
merged = {**DEFAULT_FEATURES, **saved}
|
||||
except (FileNotFoundError, json.JSONDecodeError):
|
||||
|
||||
Reference in New Issue
Block a user