From 1d69f3fe25ef7a519a0881d3e11074cc8fb89631 Mon Sep 17 00:00:00 2001 From: wlinator Date: Sun, 1 Sep 2024 08:06:13 -0400 Subject: [PATCH] refactor: Update LumiException class to inherit from app_commands.AppCommandError --- lib/exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/exceptions.py b/lib/exceptions.py index 3a21630..4ffe9df 100644 --- a/lib/exceptions.py +++ b/lib/exceptions.py @@ -10,7 +10,7 @@ class BirthdaysDisabled(commands.CheckFailure, app_commands.CheckFailure): """ -class LumiException(commands.CommandError): +class LumiException(commands.CommandError, app_commands.AppCommandError): """ A generic exception to raise for quick error handling. """ @@ -23,7 +23,7 @@ class LumiException(commands.CommandError): return self.message -class Blacklisted(commands.CommandError): +class Blacklisted(commands.CommandError, app_commands.AppCommandError): """ Raised when a user is blacklisted. """