fetch the found article's title when a viteboka search has one result
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4d58d33063
commit
3558ab24a3
1 file changed
+2
-2
@@ -274,9 +274,9 @@ class Viteboka(commands.Cog):
|
||||
return await interaction.followup.send(embed=embed, view=view)
|
||||
|
||||
try:
|
||||
title, url, text, image = await fetch_article(self.bot.http_session, query)
|
||||
title, url, text, image = await fetch_article(self.bot.http_session, title)
|
||||
except VitebokaException as e:
|
||||
self.bot.logger.error(f"Failed to fetch article {query}: {e}")
|
||||
self.bot.logger.error(f"Failed to fetch article {title}: {e}")
|
||||
embed = embed_templates.error_fatal(str(e))
|
||||
return await interaction.followup.send(embed=embed)
|
||||
|
||||
|
||||
Reference in new issue
Block a user