diff options
| author | 2019-12-09 23:18:32 -0800 | |
|---|---|---|
| committer | 2019-12-09 23:18:32 -0800 | |
| commit | 1b938af27cb9901acdb86579029dc4a7cbae0b7d (patch) | |
| tree | fdaf3e66d646e214abb34abf7472c88385230769 | |
| parent | Merge pull request #682 from manusaurio/master (diff) | |
Moderation: show HTTP status code in the log for deactivation failures
| -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 3e0968121..703b09802 100644 --- a/bot/cogs/moderation/scheduler.py +++ b/bot/cogs/moderation/scheduler.py @@ -329,7 +329,7 @@ class InfractionScheduler(Scheduler): log_content = mod_role.mention except discord.HTTPException as e: log.exception(f"Failed to deactivate infraction #{id_} ({type_})") - log_text["Failure"] = f"HTTPException with code {e.code}." + log_text["Failure"] = f"HTTPException with status {e.status} and code {e.code}." log_content = mod_role.mention # Check if the user is currently being watched by Big Brother. |