diff options
| author | 2020-12-02 17:57:52 +0200 | |
|---|---|---|
| committer | 2020-12-02 17:57:52 +0200 | |
| commit | 7c2ceede521fd0599b0fa1e55b8485008d80e08e (patch) | |
| tree | 11728b6a5d0c9864a20c981a58c755911de74c72 | |
| parent | Fix user leaving from guild log grammar (diff) | |
Log exception instead warning for unexpected HttpException
| -rw-r--r-- | bot/exts/moderation/infraction/_scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/_scheduler.py b/bot/exts/moderation/infraction/_scheduler.py index 835f3a2e1..22739d332 100644 --- a/bot/exts/moderation/infraction/_scheduler.py +++ b/bot/exts/moderation/infraction/_scheduler.py @@ -83,7 +83,7 @@ class InfractionScheduler: f"Can't reapply {infraction['type']} to user {infraction['user']} because user left the guild." ) else: - log.warning( + log.exception( ( f"Got unexpected HTTPException (HTTP {e.status}, Discord code {e.code})" f"when awaiting {infraction['type']} coroutine for {infraction['user']}." |