Skip to content

Commit 17dd885

Browse files
committed
Fix GH Workflow with black Formatting
1 parent 124669d commit 17dd885

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

cogs/modmail.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,9 @@ async def contact(
18031803
try:
18041804
await msg.delete(delay=10)
18051805
except (discord.Forbidden, discord.NotFound) as e:
1806-
logger.debug(f"Failed to delete message (likely already deleted or lacking permissions): {e}")
1806+
logger.debug(
1807+
f"Failed to delete message (likely already deleted or lacking permissions): {e}"
1808+
)
18071809
# Don't try to create a new thread - we just unsnoozed existing ones
18081810
return
18091811

core/thread.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,16 @@ async def snooze(self, moderator=None, command_used=None, snooze_for=None):
224224
"author_name": (
225225
getattr(m.embeds[0].author, "name", "").split(" (")[0]
226226
if m.embeds and m.embeds[0].author and m.author == self.bot.user
227-
else getattr(m.author, "name", None) if m.author != self.bot.user else None
227+
else getattr(m.author, "name", None)
228+
if m.author != self.bot.user
229+
else None
228230
),
229231
"author_avatar": (
230232
getattr(m.embeds[0].author, "icon_url", None)
231233
if m.embeds and m.embeds[0].author and m.author == self.bot.user
232-
else m.author.display_avatar.url if m.author != self.bot.user else None
234+
else m.author.display_avatar.url
235+
if m.author != self.bot.user
236+
else None
233237
),
234238
}
235239
async for m in channel.history(limit=None, oldest_first=True)

0 commit comments

Comments
 (0)