Fix timetable forgetting days other than mon-fri exist

This commit is contained in:
nex 2022-10-15 15:33:52 +01:00
parent 58256a317f
commit 88ebd55461

View file

@ -157,7 +157,7 @@ class TimeTableCog(commands.Cog):
else:
date = datetime.now()
lessons = self.timetable[date.strftime("%A").lower()]
lessons = self.timetable.get(date.strftime("%A").lower(), [])
if not lessons:
return await ctx.respond(f"No lessons on {discord.utils.format_dt(date, 'D')}.")