forked from MarseyWorld/MarseyWorld
fix annoying 500 error
parent
2cf2d869de
commit
a4ff0d4c88
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue