Fix JsonDataFile default file loading

This commit is contained in:
miruka 2020-03-15 10:26:53 -04:00
parent f507523af6
commit 4d2345f4b9

View File

@ -116,7 +116,7 @@ class JSONDataFile(DataFile):
"""
try:
data = json.loads(await super().read())
data = json.loads(self.path.read_text())
except FileNotFoundError:
if not self.create_missing:
return await self.default_data()