From 1132498f6cfc2ea41fefa825d9250bb4ee843e4c Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Thu, 14 Sep 2023 04:04:21 +0200 Subject: [PATCH] Fix `[p]diagnoseissues` edge case for commands without a cog (#6237) --- redbot/core/_diagnoser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/redbot/core/_diagnoser.py b/redbot/core/_diagnoser.py index 6b9222842..96837d79c 100644 --- a/redbot/core/_diagnoser.py +++ b/redbot/core/_diagnoser.py @@ -485,9 +485,7 @@ class DetailedCommandChecksMixin(IssueDiagnoserBase): return await self._check_requires(_("Permissions verification"), self.ctx.command) async def _check_requires_cog(self) -> CheckResult: - label = _("Permissions verification for {cog} cog").format( - cog=inline(self.ctx.cog.qualified_name) - ) + label = _("Cog permissions verification") if self.ctx.cog is None: return CheckResult(True, label) return await self._check_requires(label, self.ctx.cog)