forked from MarseyWorld/MarseyWorld
fix annoying 500 error
parent
2cf2d869de
commit
a4ff0d4c88
|
@ -36,7 +36,8 @@ def reload_settings():
|
||||||
if not os.path.isfile(SETTINGS_FILENAME):
|
if not os.path.isfile(SETTINGS_FILENAME):
|
||||||
_save_settings()
|
_save_settings()
|
||||||
with open(SETTINGS_FILENAME, 'r', encoding='utf_8') as f:
|
with open(SETTINGS_FILENAME, 'r', encoding='utf_8') as f:
|
||||||
_SETTINGS = json.load(f)
|
if f.read():
|
||||||
|
_SETTINGS = json.load(f)
|
||||||
|
|
||||||
def _save_settings():
|
def _save_settings():
|
||||||
with open(SETTINGS_FILENAME, "w", encoding='utf_8') as f:
|
with open(SETTINGS_FILENAME, "w", encoding='utf_8') as f:
|
||||||
|
|
Loading…
Reference in New Issue