Backup #16
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