Skip to content
Closed
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
2 changes: 1 addition & 1 deletion cogs/committee_actions_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async def create(
In normal use the autocomplete should be used, but a discord ID can be
used directly if the user wishes to action a user not included in the autocomplete.
"""
member_id: str = action_member_id if action_member_id else str(ctx.user.id)
member_id: str = action_member_id or str(ctx.user.id)

try:
action_user: discord.Member = await self.bot.get_member_from_str_id(
Expand Down
4 changes: 1 addition & 3 deletions exceptions/config_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ def __init__(
self, message: str | None = None, changed_settings: "AbstractSet[str] | None" = None
) -> None:
"""Initialise an Exception to apply configuration changes."""
self.changed_settings: AbstractSet[str] | None = (
changed_settings if changed_settings else set()
)
self.changed_settings: AbstractSet[str] | None = changed_settings or set()

super().__init__(message)
2 changes: 1 addition & 1 deletion utils/tex_bot_base_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def send_error(
" ".join(
message_part
for message_part in (
error_code if error_code else "",
error_code or "",
f"({interaction_name})",
str(logging_message),
)
Expand Down