fix annoying 500 error

master
Aevann 2023-03-17 16:38:54 +02:00
parent 2cf2d869de
commit a4ff0d4c88
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +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)
def _save_settings():