Compare commits
No commits in common. "3662ce3b2306a7042bb5691ecadd64df5b884a40" and "ac761d9284300cf0674b15c7f446f7455ff7ffed" have entirely different histories.
3662ce3b23
...
ac761d9284
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,6 @@ class Backup(commands.Cog):
|
|||
repo_dict = {
|
||||
"name": repo.name,
|
||||
"url": repo.url,
|
||||
"branch": repo.branch,
|
||||
"cogs": []
|
||||
}
|
||||
|
||||
|
@ -63,7 +62,8 @@ class Backup(commands.Cog):
|
|||
async def backup_import(self, ctx: commands.Context):
|
||||
"""Import your installed repositories and cogs from an export file."""
|
||||
try:
|
||||
export = json.loads(await ctx.message.attachments[0].read())
|
||||
export_raw = await ctx.message.attachments[0].read()
|
||||
export = json.loads(export_raw)
|
||||
except (json.JSONDecodeError, IndexError):
|
||||
await ctx.send(error("Please provide a valid JSON export file."))
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue