Skip to content

Commit

Permalink
Fixing Shift Logging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikey committed Dec 31, 2023
1 parent 93d80ae commit fad927d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/ShiftLogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit fad927d

Please sign in to comment.