diff options
| author | 2020-12-02 17:57:00 +0200 | |
|---|---|---|
| committer | 2020-12-02 17:57:00 +0200 | |
| commit | 50db55dd25f065222213510188e62b0d951b95c8 (patch) | |
| tree | d632c14e40b4e751829a9297a5a36f16a46b2d90 | |
| parent | Merge NotFound caching with HttpException caching with status code (diff) | |
Fix user leaving from guild log grammar
| -rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index 5726a5879..835f3a2e1 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -79,7 +79,9 @@ class InfractionScheduler:          except discord.HTTPException as e:              # When user joined and then right after this left again before action completed, this can't apply roles              if e.code == 10007 or e.status == 404: -                log.info(f"Can't reapply {infraction['type']} to user {infraction['user']} because user left again.") +                log.info( +                    f"Can't reapply {infraction['type']} to user {infraction['user']} because user left the guild." +                )              else:                  log.warning(                      ( @@ -357,7 +359,7 @@ class InfractionScheduler:          except discord.HTTPException as e:              if e.code == 10007 or e.status == 404:                  log.info( -                    f"Can't pardon {infraction['type']} for user {infraction['user']} because user left from guild." +                    f"Can't pardon {infraction['type']} for user {infraction['user']} because user left the guild."                  )              else:                  log.exception(f"Failed to deactivate infraction #{id_} ({type_})")  |