From 52f843938395cbf2fa954f880573c0d4f191ab8f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 31 Jan 2024 12:56:51 -0500 Subject: [PATCH] fix(backup): lol. --- backup/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/backup.py b/backup/backup.py index 39a4d09..c774b95 100644 --- a/backup/backup.py +++ b/backup/backup.py @@ -64,7 +64,7 @@ class Backup(commands.Cog): if not len(ctx.message.attachments) == 0: export = await ctx.message.attachments[0].read() try: - export = json.loads(json) + export = json.loads(export) except json.JSONDecodeError: await ctx.send(error("Please provide a valid JSON export.")) return