Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions cogs/command_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ async def on_application_command_error(
error_code = error.original.ERROR_CODE

elif isinstance(error, CheckAnyFailure):
if CommandChecks.is_interaction_user_in_main_guild_failure(error.checks[0]):
# TODO: Remove type ignore comments once #349 is resolved # noqa: FIX002
if CommandChecks.is_interaction_user_in_main_guild_failure(error.checks[0]): # type: ignore[arg-type]
message = (
f"You must be a member of the {self.bot.group_short_name} Discord server "
"to use this command."
)

elif CommandChecks.is_interaction_user_has_committee_role_failure(error.checks[0]):
elif CommandChecks.is_interaction_user_has_committee_role_failure(error.checks[0]): # type: ignore[arg-type]
# noinspection PyUnusedLocal
committee_role_mention: str = "@Committee"
with contextlib.suppress(CommitteeRoleDoesNotExistError):
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def _setup_env_variables(cls) -> None:
are only stored after the input values have been validated.
"""
if cls._is_env_variables_setup:
logging.warning("Environment variables have already been set up.")
logger.warning("Environment variables have already been set up.")
return

dotenv.load_dotenv()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ main = [
"matplotlib>=3.10",
"mplcyberpunk>=0.7",
"parsedatetime>=2.6",
"py-cord>=2.6,<2.6.1", # TODO: Remove version limit once #349 is resolved
"py-cord>=2.6",
"python-dotenv>=1.0",
"python-logging-discord-handler>=0.1",
"typed_classproperties>=1.1.3",
Expand Down
Loading