diff options
| author | 2019-12-22 14:29:42 -0800 | |
|---|---|---|
| committer | 2019-12-22 14:29:42 -0800 | |
| commit | cf7d4f9c334bb96b3dd95a083bdff12be9e7defe (patch) | |
| tree | 89e6f39de05b959e1defc81e945c0f806b2e5896 | |
| parent | Remove unreachable break in post_infraction loop (diff) | |
Use more specific error message for infraction DM user fetch
| -rw-r--r-- | bot/cogs/moderation/scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/scheduler.py b/bot/cogs/moderation/scheduler.py index 4b3d553c2..732091c17 100644 --- a/bot/cogs/moderation/scheduler.py +++ b/bot/cogs/moderation/scheduler.py @@ -114,7 +114,7 @@ class InfractionScheduler(Scheduler): if not isinstance(user, (discord.Member, discord.User)): user = await self.bot.fetch_user(user.id) except discord.HTTPException as e: - log.error(f"Failed to fetch user `{user.id}`: status {e.status}") + log.error(f"Failed to DM {user.id}: could not fetch user (status {e.status})") else: # Accordingly display whether the user was successfully notified via DM. if await utils.notify_infraction(user, infr_type, expiry, reason, icon): |