Fix JsonDataFile default file loading
This commit is contained in:
parent
f507523af6
commit
4d2345f4b9
|
@ -116,7 +116,7 @@ class JSONDataFile(DataFile):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
data = json.loads(await super().read())
|
data = json.loads(self.path.read_text())
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
if not self.create_missing:
|
if not self.create_missing:
|
||||||
return await self.default_data()
|
return await self.default_data()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user