forked from blizzthewolf/SeaCogs
fix(backup): lol.
This commit is contained in:
parent
d0375c3bdb
commit
52f8439383
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue