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