diff options
| author | 2021-02-06 18:10:17 +0100 | |
|---|---|---|
| committer | 2021-02-06 18:10:17 +0100 | |
| commit | 174f70e216e327e30a9df6902619944f47eea5ad (patch) | |
| tree | ee2b7e2d945104c4b6b26e5c626403b43d1d53ed | |
| parent | Linting fix. (diff) | |
add reason attribute
| -rw-r--r-- | bot/errors.py | 1 |
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) |