From 88ebd55461a07ef46a146f9701412780694da35c Mon Sep 17 00:00:00 2001 From: nex <53234499+EEKIM10@users.noreply.github.com> Date: Sat, 15 Oct 2022 15:33:52 +0100 Subject: [PATCH] Fix timetable forgetting days other than mon-fri exist --- cogs/timetable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/timetable.py b/cogs/timetable.py index 406f887..dc0fb5c 100644 --- a/cogs/timetable.py +++ b/cogs/timetable.py @@ -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')}.")