aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/errors.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/errors.py b/bot/errors.py
index a6fc33312..ab0adcd42 100644
--- a/bot/errors.py
+++ b/bot/errors.py
@@ -32,5 +32,6 @@ class InvalidInfractedUser(Exception):
def __init__(self, user: Union[Member, User], reason: str = "User infracted is a bot."):
self.user = user
+ self.reason = reason
super().__init__(reason)