Try except on deleting the original heic file

This commit is contained in:
Luke Robles 2021-09-30 08:54:40 -07:00
parent b1c087651f
commit 6478d41b17

View File

@ -70,7 +70,10 @@ async def convert_heic_to_jpg(ctx):
img.format='jpg'
img.save(filename=jpg_file)
img.close()
await ctx.delete()
try:
await ctx.delete()
except Exception:
pass
await ctx.channel.send("%s said:\n%s" % (ctx.author.mention, ctx.content), file=discord.File(jpg_file))
return