Fix Tupperbox importing broken by a d.py update\n\nAs for why this is necessary, see https://github.com/Rapptz/discord.py/issues/1973

This commit is contained in:
Ske 2019-03-10 23:42:14 +01:00
parent 7806ccf8d8
commit ac911b170d

View File

@ -30,7 +30,7 @@ async def import_tupperbox(ctx: CommandContext):
raise CommandError("Timed out. Try running `pk;import` again.") raise CommandError("Timed out. Try running `pk;import` again.")
s = io.BytesIO() s = io.BytesIO()
await message.attachments[0].save(s) await message.attachments[0].save(s, use_cached=False)
data = json.load(s) data = json.load(s)
system = await ctx.get_system() system = await ctx.get_system()