diff --git a/redbot/cogs/customcom/customcom.py b/redbot/cogs/customcom/customcom.py index a4a0bf005..8d3faae8e 100644 --- a/redbot/cogs/customcom/customcom.py +++ b/redbot/cogs/customcom/customcom.py @@ -84,6 +84,8 @@ class CommandObj: return "{:%d/%m/%Y %H:%M:%S}".format(datetime.utcnow()) async def get(self, message: discord.Message, command: str) -> Tuple[str, Dict]: + if not command: + raise NotFound() ccinfo = await self.db(message.guild).commands.get_raw(command, default=None) if not ccinfo: raise NotFound()