diff --git a/app/bot.py b/app/bot.py index 5fc46582..92fed828 100755 --- a/app/bot.py +++ b/app/bot.py @@ -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