From 84166f322fdd5382269e4c088e47aee7a3d9748c Mon Sep 17 00:00:00 2001 From: NightSlasher35 <49624805+NightSlasher35@users.noreply.github.com> Date: Sun, 24 Dec 2023 01:21:15 +0000 Subject: [PATCH] i dont know, im on something tonit --- ext/error.py | 2 +- pyproject.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/error.py b/ext/error.py index 098ada0..bf644d5 100644 --- a/ext/error.py +++ b/ext/error.py @@ -52,7 +52,7 @@ async def on_command_error(self, ctx: AloneContext, error: Exception) -> None: embed.set_author(name=f"{ctx.author.name}", icon_url=ctx.author.display_avatar) embed.add_field( name="Information", - value=f"Error Name: {error.__name__}\nMessage: {ctx.message.content}\n{guild}Channel ID: {ctx.channel.id}", # type: ignore fuck you pyright this shit exists + value=f"Error Name: {error.__class__.__name__}\nMessage: {ctx.message.content}\n{guild}Channel ID: {ctx.channel.id}", ) channel: discord.Webhook = self.bot.get_log_webhook() diff --git a/pyproject.toml b/pyproject.toml index 6cfb564..20ea067 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,4 +25,5 @@ reportImportCycles = false reportUnusedImport = "error" reportUnnecessaryTypeIgnoreComment = "error" reportIncompatibleMethodOverride = "none" -reportPrivateUsage = "none" \ No newline at end of file +reportPrivateUsage = "none" +exclude = ["**/venv"] \ No newline at end of file