mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Setup] Fix: wrong var used for instance data in remove_instance (#2709)
This commit is contained in:
parent
1ffb79f852
commit
cdcde26dfc
@ -440,7 +440,7 @@ async def remove_instance(instance):
|
|||||||
collection = await db.get_collection(name)
|
collection = await db.get_collection(name)
|
||||||
await collection.drop()
|
await collection.drop()
|
||||||
else:
|
else:
|
||||||
pth = Path(instance_data["DATA_PATH"])
|
pth = Path(instance_vals["DATA_PATH"])
|
||||||
safe_delete(pth)
|
safe_delete(pth)
|
||||||
save_config(instance, {}, remove=True)
|
save_config(instance, {}, remove=True)
|
||||||
print("The instance {} has been removed\n".format(instance))
|
print("The instance {} has been removed\n".format(instance))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user