From 97379afe6d81bf6448c453e049b7b96cd535c3dd Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Tue, 28 Jul 2020 16:29:20 +0200 Subject: [PATCH] Fix the `cog_before_invoke` hook in Admin (#4124) --- redbot/cogs/admin/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/admin/admin.py b/redbot/cogs/admin/admin.py index 271c646d6..2896df2cd 100644 --- a/redbot/cogs/admin/admin.py +++ b/redbot/cogs/admin/admin.py @@ -84,7 +84,7 @@ class Admin(commands.Cog): asyncio.create_task(self.handle_migrations()) # As this is a data migration, don't store this for cancelation. - async def cog_before_invoke(self): + async def cog_before_invoke(self, ctx: commands.Context): await self._ready.wait() async def handle_migrations(self):