From fad927d6aaa1eccfddf63eaf8de3a202dd75d366 Mon Sep 17 00:00:00 2001 From: Mikey Date: Sun, 31 Dec 2023 03:53:54 +0000 Subject: [PATCH] Fixing Shift Logging issues --- cogs/ShiftLogging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/ShiftLogging.py b/cogs/ShiftLogging.py index 27a1d1bc..a9ea4a5e 100644 --- a/cogs/ShiftLogging.py +++ b/cogs/ShiftLogging.py @@ -507,7 +507,7 @@ async def duty_active(self, ctx: commands.Context, type: str): ) ], ) - if not type.lower() in [i["name"].lower() for i in shift_types]: + if not (type or '').lower() in [i["name"].lower() for i in shift_types]: msg = await ctx.reply( embed=discord.Embed( title="Incorrect Shift Type", @@ -714,7 +714,7 @@ async def shift_leaderboard(self, ctx: commands.Context, *, type: str = None): ) ], ) - if not type.lower() in [i["name"].lower() for i in shift_types]: + if not (type or '').lower() in [i["name"].lower() for i in shift_types]: msg = await ctx.reply( embed=discord.Embed( title="Incorrect Shift Type",