1
0
Fork 0
mirror of synced 2024-06-26 10:10:44 +12:00

Changed up config, to error out in case incorrect data was provided

This commit is contained in:
Phxntxm 2016-08-13 22:52:55 -05:00
parent dbea3e89d9
commit c61838886a

View file

@ -38,6 +38,7 @@ def saveContent(key: str, content):
data = json.load(jf)
data[key] = content
jf.seek(0)
json.dumps(data)
jf.truncate()
json.dump(data, jf, indent=4)
except FileNotFoundError: