Skip to content

Commit

Permalink
format: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 31, 2023
1 parent 729ff44 commit 08dbc5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cogs/config/crosspost.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions cogs/misc/revive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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,
Expand Down

0 comments on commit 08dbc5f

Please sign in to comment.