Peer review comments

This commit is contained in:
owner 2019-08-28 20:04:45 -05:00
commit 7fab07661f

View file

@ -342,7 +342,8 @@ def get_credentials():
elif os.path.exists(os.path.join(ADDON_DATA, 'data.txt')):
os.rename(os.path.join(ADDON_DATA, 'data.txt'), os.path.join(ADDON_DATA, 'data.json'))
else:
open(os.path.join(ADDON_DATA, 'data.json'), 'a')
with open(os.path.join(ADDON_DATA, 'data.json'), 'w'):
pass
with open(os.path.join(ADDON_DATA, 'data.json')) as infile:
credentials = json.load(infile)