Skip to content

Commit 1de48fd

Browse files
committed
Linting
1 parent beb73d8 commit 1de48fd

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

core/changelog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def embed(self) -> Embed:
9191
"""
9292
embed = Embed(color=self.bot.main_color, description=self.description)
9393
embed.set_author(
94-
name=f"v{self.version} - Changelog", icon_url=self.bot.user.avatar_url, url=self.url
94+
name=f"v{self.version} - Changelog", icon_url=self.bot.user.avatar_url, url=self.url,
9595
)
9696

9797
for name, value in self.fields.items():

core/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
logger = getLogger(__name__)
66

77

8-
def has_permissions_predicate(permission_level: PermissionLevel = PermissionLevel.REGULAR):
8+
def has_permissions_predicate(permission_level: PermissionLevel = PermissionLevel.REGULAR,):
99
async def predicate(ctx):
1010
return await check_permissions(ctx, ctx.command.qualified_name)
1111

core/thread.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -750,20 +750,21 @@ async def reply(
750750
except Exception as e:
751751
logger.error("Message delivery failed:", exc_info=True)
752752
if isinstance(e, discord.Forbidden):
753-
description = ("Your message could not be delivered as "
754-
"the recipient is only accepting direct "
755-
"messages from friends, or the bot was "
756-
"blocked by the recipient.")
753+
description = (
754+
"Your message could not be delivered as "
755+
"the recipient is only accepting direct "
756+
"messages from friends, or the bot was "
757+
"blocked by the recipient."
758+
)
757759
else:
758-
description = ("Your message could not be delivered due "
759-
"to an unknown error. Check `?debug` for "
760-
"more information")
760+
description = (
761+
"Your message could not be delivered due "
762+
"to an unknown error. Check `?debug` for "
763+
"more information"
764+
)
761765
tasks.append(
762766
message.channel.send(
763-
embed=discord.Embed(
764-
color=self.bot.error_color,
765-
description=description,
766-
)
767+
embed=discord.Embed(color=self.bot.error_color, description=description,)
767768
)
768769
)
769770
else:

0 commit comments

Comments
 (0)