aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2021-02-19 10:49:59 +0200
committerGravatar mbaruh <[email protected]>2021-02-19 10:49:59 +0200
commitb7712cb0c3afac01cc67547ddbe0f17057e07585 (patch)
tree52a2ae2b524128bd52e4ab851afd08d9068547dc
parentThreshold has false-y value when set to 0 (diff)
Error to load settings will send the traceback to the channel
-rw-r--r--bot/exts/moderation/defcon.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/moderation/defcon.py b/bot/exts/moderation/defcon.py
index 49f5a4ddd..3ea6b971a 100644
--- a/bot/exts/moderation/defcon.py
+++ b/bot/exts/moderation/defcon.py
@@ -1,5 +1,6 @@
import asyncio
import logging
+import traceback
from collections import namedtuple
from datetime import datetime
from enum import Enum
@@ -89,6 +90,7 @@ class Defcon(Cog):
log.exception("Unable to get DEFCON settings!")
await self.channel.send(
f"<@&{Roles.moderators}> <@&{Roles.devops}> **WARNING**: Unable to get DEFCON settings!"
+ f"\n\n```{traceback.format_exc()}```"
)
else: