fix(backup): lol.
All checks were successful
Actions / Lint Code (Pylint) (pull_request) Successful in 14s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 11s

This commit is contained in:
Seaswimmer 2024-01-31 12:56:51 -05:00
parent d0375c3bdb
commit 52f8439383
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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