forked from MarseyWorld/MarseyWorld
fix last commit
parent
8f5ed6f8a5
commit
0e4f886d92
|
@ -36,7 +36,9 @@ def reload_settings():
|
|||
if not os.path.isfile(SETTINGS_FILENAME):
|
||||
_save_settings()
|
||||
with open(SETTINGS_FILENAME, 'r', encoding='utf_8') as f:
|
||||
_SETTINGS = json.load(f)
|
||||
x = f.read()
|
||||
if x:
|
||||
_SETTINGS = json.loads(x)
|
||||
|
||||
def _save_settings():
|
||||
with open(SETTINGS_FILENAME, "w", encoding='utf_8') as f:
|
||||
|
|
Loading…
Reference in New Issue