diff --git a/cogs/config/crosspost.py b/cogs/config/crosspost.py index 72eba93d..d458df87 100644 --- a/cogs/config/crosspost.py +++ b/cogs/config/crosspost.py @@ -65,5 +65,5 @@ async def on_message(self, message: discord.Message): if crosspost: try: return await message.publish() - except discord.HTTPException as e: + except discord.HTTPException: return diff --git a/cogs/misc/revive.py b/cogs/misc/revive.py index a4742f1c..467fd1ee 100644 --- a/cogs/misc/revive.py +++ b/cogs/misc/revive.py @@ -22,7 +22,7 @@ async def topic( ): locale = get_language(self.bot, interaction.guild_id) original_id = id - id = randint(0, len(questions)) if id == None else id + id = randint(0, len(questions)) if id is None else id index = id - 1 embeds = [] files = [] @@ -35,12 +35,12 @@ async def topic( embed = discord.Embed( title=i18n.t("misc.topic_title", locale=locale), - description= await translate(questions[index], locale, "en"), - color=await get_color(self.bot, interaction.guild_id), # type: ignore + description=await translate(questions[index], locale, "en"), + color=await get_color(self.bot, interaction.guild_id), # type: ignore ) embed.set_footer(text=i18n.t("misc.topic_footer", locale=locale, id=id)) embeds.append(embed) - + if not valid_topic: embed2, file = error_embed( self.bot,