mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
[V3 JSON Driver] Don't save json if it exists (#1133)
This commit is contained in:
parent
5ebde77747
commit
9b1018fa96
@ -39,7 +39,7 @@ class JSON(BaseDriver):
|
|||||||
self.data = self.jsonIO._load_json()
|
self.data = self.jsonIO._load_json()
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
self.data = {}
|
self.data = {}
|
||||||
self.jsonIO._save_json(self.data)
|
self.jsonIO._save_json(self.data)
|
||||||
|
|
||||||
def get_driver(self):
|
def get_driver(self):
|
||||||
return self
|
return self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user