From 6c68aa9dcdd7c139142db13a19b030d8f74f7afa Mon Sep 17 00:00:00 2001 From: Twentysix Date: Wed, 29 Jul 2020 02:48:50 +0200 Subject: [PATCH] [CustomCom] [p]cc show - Handle missing cooldowns (#4112) The old dataconverter didn't add cooldowns by default and `[p]cc show` expects them to be present --- redbot/cogs/customcom/customcom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/customcom/customcom.py b/redbot/cogs/customcom/customcom.py index c6b3602d2..0976e1832 100644 --- a/redbot/cogs/customcom/customcom.py +++ b/redbot/cogs/customcom/customcom.py @@ -490,7 +490,7 @@ class CustomCommands(commands.Cog): command_name=command_name, author=author, created_at=cmd["created_at"], type=_type ) - cooldowns = cmd["cooldowns"] + cooldowns = cmd.get("cooldowns", {}) if cooldowns: cooldown_text = _("Cooldowns:\n")