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:
|
if not len(ctx.message.attachments) == 0:
|
||||||
export = await ctx.message.attachments[0].read()
|
export = await ctx.message.attachments[0].read()
|
||||||
try:
|
try:
|
||||||
export = json.loads(json)
|
export = json.loads(export)
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
await ctx.send(error("Please provide a valid JSON export."))
|
await ctx.send(error("Please provide a valid JSON export."))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue