Skip to content

Commit df15ad8

Browse files
lorenzo132sebkuip
authored andcommitted
linting
1 parent 2f0c585 commit df15ad8

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
@@ -1486,7 +1486,9 @@ async def _bulk_override_flow(self, ctx):
14861486
)
14871487

14881488
except asyncio.TimeoutError:
1489-
return await ctx.send(embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color))
1489+
return await ctx.send(
1490+
embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color)
1491+
)
14901492

14911493
raw_commands = msg.content.replace(",", " ").replace("\n", " ").split(" ")
14921494
# Filter empty strings from split
@@ -1495,8 +1497,7 @@ async def _bulk_override_flow(self, ctx):
14951497
if self.bot.prefix:
14961498
# Strip prefix from commands if present
14971499
raw_commands = [
1498-
c[len(self.bot.prefix) :] if c.startswith(self.bot.prefix) else c
1499-
for c in raw_commands
1500+
c[len(self.bot.prefix) :] if c.startswith(self.bot.prefix) else c for c in raw_commands
15001501
]
15011502

15021503
found_commands = []
@@ -1532,12 +1533,16 @@ async def _bulk_override_flow(self, ctx):
15321533
)
15331534
)
15341535
except asyncio.TimeoutError:
1535-
return await ctx.send(embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color))
1536+
return await ctx.send(
1537+
embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color)
1538+
)
15361539

15371540
if not found_commands:
15381541
return await ctx.send(
15391542
embed=discord.Embed(
1540-
title="Error", description="No valid commands provided. Aborting.", color=self.bot.error_color
1543+
title="Error",
1544+
description="No valid commands provided. Aborting.",
1545+
color=self.bot.error_color,
15411546
)
15421547
)
15431548

@@ -1571,7 +1576,9 @@ def add_command_recursive(cmd):
15711576
)
15721577

15731578
except asyncio.TimeoutError:
1574-
return await ctx.send(embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color))
1579+
return await ctx.send(
1580+
embed=discord.Embed(title="Error", description="Timed out.", color=self.bot.error_color)
1581+
)
15751582

15761583
level_name = msg.content
15771584
level = self._parse_level(level_name)

0 commit comments

Comments
 (0)