diff options
| author | 2020-12-02 18:00:34 +0200 | |
|---|---|---|
| committer | 2020-12-02 18:00:34 +0200 | |
| commit | eb73d3030d6f1d1aaf16defee9992f6336321f64 (patch) | |
| tree | b3bbcdabff39ca7b850bc31b2f0518f690576960 | |
| parent | Remove second unnecessary parenthesis (diff) | |
Add failure message when applying infraction fails because user left
| -rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index 8a45692d5..ca4d18c98 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -359,6 +359,8 @@ class InfractionScheduler: log.info( f"Can't pardon {infraction['type']} for user {infraction['user']} because user left the guild." ) + log_text["Failure"] = f"User left the guild." + log_content = mod_role.mention else: log.exception(f"Failed to deactivate infraction #{id_} ({type_})") log_text["Failure"] = f"HTTPException with status {e.status} and code {e.code}." |