Try except on deleting the original heic file
This commit is contained in:
parent
dc057b87c0
commit
ffec2de967
@ -70,7 +70,10 @@ async def convert_heic_to_jpg(ctx):
|
|||||||
img.format='jpg'
|
img.format='jpg'
|
||||||
img.save(filename=jpg_file)
|
img.save(filename=jpg_file)
|
||||||
img.close()
|
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))
|
await ctx.channel.send("%s said:\n%s" % (ctx.author.mention, ctx.content), file=discord.File(jpg_file))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user