Skip to content

Commit 3a4c406

Browse files
committed
Bump dependencies
1 parent 8b4ebc0 commit 3a4c406

4 files changed

Lines changed: 101 additions & 100 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: check-added-large-files
1010

1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.15.22
12+
rev: v0.16.4
1313
hooks:
1414
- id: ruff-check
1515
# fix imports:

‎pyproject.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=83.0.0"]
2+
requires = ["setuptools>=84.0.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -52,6 +52,8 @@ ignore = [
5252
"EM101", "EM102", "TRY003", "G004",
5353
# require TYPE_CHECKING blocks for typing-only imports
5454
"TC",
55+
# require copyright notice at top of each file
56+
"CPY001",
5557
]
5658

5759
[tool.ruff.lint.per-file-ignores]

‎src/europython_discord/registration/cog.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ async def on_submit(self, interaction: discord.Interaction) -> None:
116116
async def on_error(self, interaction: Interaction, error: Exception) -> None:
117117
user_is_admin = any(role.name == "Admin" for role in interaction.user.roles)
118118
if isinstance(error, Forbidden) and user_is_admin:
119-
_logger.exception("An error occurred (user is admin)")
119+
_logger.error("An error occurred (user is admin)", exc_info=error)
120120
await self.log_error_to_user(interaction, "Admins cannot be registered via the bot.")
121121
await self.log_error_to_channel(
122122
interaction,
123123
f"Cannot register admins ({error.__class__.__name__}: {error})",
124124
)
125125

126126
else:
127-
_logger.exception("An error occurred!")
127+
_logger.error("An error occurred!", exc_info=error)
128128
await self.log_error_to_user(interaction, "Something went wrong.")
129129
await self.log_error_to_channel(interaction, f"{error.__class__.__name__}: {error}")
130130

0 commit comments

Comments
 (0)