Try except on deleting the original heic file
This commit is contained in:
parent
b1c087651f
commit
6478d41b17
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user