undo last commit

master
Aevann 2023-03-17 16:46:30 +02:00
parent a4ff0d4c88
commit f57d8e5ebc
1 changed files with 1 additions and 2 deletions

View File

@ -36,8 +36,7 @@ def reload_settings():
if not os.path.isfile(SETTINGS_FILENAME):
_save_settings()
with open(SETTINGS_FILENAME, 'r', encoding='utf_8') as f:
if f.read():
_SETTINGS = json.load(f)
_SETTINGS = json.load(f)
def _save_settings():
with open(SETTINGS_FILENAME, "w", encoding='utf_8') as f: