Skip to content

Commit 45e6f78

Browse files
committed
linting
1 parent 75ec6b6 commit 45e6f78

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

cogs/utility.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,9 @@ async def _bulk_override_flow(self, ctx):
14601460
)
14611461

14621462
except asyncio.TimeoutError:
1463-
return await ctx.send(embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color))
1463+
return await ctx.send(
1464+
embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color)
1465+
)
14641466

14651467
raw_commands = msg.content.replace(",", " ").replace("\n", " ").split(" ")
14661468
# Filter empty strings from split
@@ -1469,8 +1471,7 @@ async def _bulk_override_flow(self, ctx):
14691471
if self.bot.prefix:
14701472
# Strip prefix from commands if present
14711473
raw_commands = [
1472-
c[len(self.bot.prefix) :] if c.startswith(self.bot.prefix) else c
1473-
for c in raw_commands
1474+
c[len(self.bot.prefix) :] if c.startswith(self.bot.prefix) else c for c in raw_commands
14741475
]
14751476

14761477
found_commands = []
@@ -1506,12 +1507,16 @@ async def _bulk_override_flow(self, ctx):
15061507
)
15071508
)
15081509
except asyncio.TimeoutError:
1509-
return await ctx.send(embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color))
1510+
return await ctx.send(
1511+
embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color)
1512+
)
15101513

15111514
if not found_commands:
15121515
return await ctx.send(
15131516
embed=discord.Embed(
1514-
title="Error", description="No valid commands provided. Aborting.", color=self.bot.error_color
1517+
title="Error",
1518+
description="No valid commands provided. Aborting.",
1519+
color=self.bot.error_color,
15151520
)
15161521
)
15171522

@@ -1545,7 +1550,9 @@ def add_command_recursive(cmd):
15451550
)
15461551

15471552
except asyncio.TimeoutError:
1548-
return await ctx.send(embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color))
1553+
return await ctx.send(
1554+
embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color)
1555+
)
15491556

15501557
level_name = msg.content
15511558
level = self._parse_level(level_name)

0 commit comments

Comments
 (0)