diff options
| author | 2021-03-15 15:32:31 -0700 | |
|---|---|---|
| committer | 2021-03-15 15:41:08 -0700 | |
| commit | 089e4aaa6ac067b40d70b8cbbb95f9d26845d71f (patch) | |
| tree | d94e71ce9e1e5326f59410508413ee924852b721 | |
| parent | Defcon: fix naming conflict between threshold cmd and attribute (diff) | |
Info: account for defcon threshold being None
Fixes BOT-XK
| -rw-r--r-- | bot/exts/info/information.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index 92ddf0fbd..c54ca96bf 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -64,7 +64,8 @@ class Information(Cog): defcon_info = "" if cog := self.bot.get_cog("Defcon"): - defcon_info = f"Defcon threshold: {humanize_delta(cog.threshold)}\n" + threshold = humanize_delta(cog.threshold) if cog.threshold else "-" + defcon_info = f"Defcon threshold: {threshold}\n" verification = f"Verification level: {ctx.guild.verification_level.name}\n" |