Skip to content

Commit f39bbcd

Browse files
committed
Reduce logic calling in string, adjust pre_push.py
Signed-off-by: DeltaXWizard <33706469+deltaxwizard@users.noreply.github.com>
1 parent 3d385ef commit f39bbcd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

discord_slash/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def add_slash_command(
539539
guild_ids = guild_ids or []
540540
if not all(isinstance(item, int) for item in guild_ids):
541541
raise error.IncorrectGuildIDType(
542-
f"The snowflake IDs {guild_ids} given are not a list of integers. Because of discord.py convention, please use integer IDs instead. Furthermore, the command '{name or cmd.__name__}' will be deactivated and broken until fixed."
542+
f"The snowflake IDs {guild_ids} given are not a list of integers. Because of discord.py convention, please use integer IDs instead. Furthermore, the command '{name}' will be deactivated and broken until fixed."
543543
)
544544

545545
if name in self.commands:
@@ -622,7 +622,7 @@ def add_subcommand(
622622
guild_ids = guild_ids or []
623623
if not all(isinstance(item, int) for item in guild_ids):
624624
raise error.IncorrectGuildIDType(
625-
f"The snowflake IDs {guild_ids} given are not a list of integers. Because of discord.py convention, please use integer IDs instead. Furthermore, the command '{name or cmd.__name__}' will be deactivated and broken until fixed."
625+
f"The snowflake IDs {guild_ids} given are not a list of integers. Because of discord.py convention, please use integer IDs instead. Furthermore, the command '{name}' will be deactivated and broken until fixed."
626626
)
627627

628628
if base in self.commands:

pre_push.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def run_static():
4444
success &= do_process(["black", "."])
4545
success &= do_process(["isort", "."])
4646
# Linters
47-
success &= do_process(["flake8", "--exclude=.eggs,build,docs,.venv*"])
47+
success &= do_process(["flake8", "--exclude=.eggs,build,docs,.venv*,env*"])
4848

4949
tmp_dir = mkdtemp()
5050
try:

0 commit comments

Comments
 (0)