Skip to content

Commit 6c68aa9

Browse files
authored
[CustomCom] [p]cc show - Handle missing cooldowns (Cog-Creators#4112)
The old dataconverter didn't add cooldowns by default and `[p]cc show` expects them to be present
1 parent 7458eef commit 6c68aa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

redbot/cogs/customcom/customcom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ async def cc_show(self, ctx, command_name: str):
490490
command_name=command_name, author=author, created_at=cmd["created_at"], type=_type
491491
)
492492

493-
cooldowns = cmd["cooldowns"]
493+
cooldowns = cmd.get("cooldowns", {})
494494

495495
if cooldowns:
496496
cooldown_text = _("Cooldowns:\n")

0 commit comments

Comments
 (0)