From 817184ecf752d92c46c53d4667350533ceae33d5 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 11 Dec 2020 14:34:48 +0100 Subject: [PATCH] fix author news --- cogs/internet.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cogs/internet.py b/cogs/internet.py index ac3bf98..3e02df1 100644 --- a/cogs/internet.py +++ b/cogs/internet.py @@ -178,7 +178,10 @@ class Internet(commands.Cog): desc = "Pas de description trouvée." if "

" in info.description or "" in info.description else info.description embed = discord.Embed(title = info.title, color = randint(0, 0xFFFFFF), description = f"[**lien de la news**]({info.link})\n\n{desc}") - embed.set_author(name = info.author) + try: + embed.set_author(name = info.author) + except: + pass embed.set_footer(text = f"News de {choix_site.capitalize()}") #embed.set_image(url = submission.url) await ctx.send(embed = embed)