aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-02 17:57:52 +0200
committerGravatar ks129 <[email protected]>2020-12-02 17:57:52 +0200
commit7c2ceede521fd0599b0fa1e55b8485008d80e08e (patch)
tree11728b6a5d0c9864a20c981a58c755911de74c72
parentFix user leaving from guild log grammar (diff)
Log exception instead warning for unexpected HttpException
-rw-r--r--bot/exts/moderation/infraction/_scheduler.py2
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']}."