From 867dd048fd298ec54663b6497a36f852e17f4953 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Mon, 17 Jun 2024 16:41:17 -0400 Subject: [PATCH] fix: do not try to fill gaps if there are no timeslots --- program/services.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/program/services.py b/program/services.py index 4b0413c3..eeb6ce3d 100644 --- a/program/services.py +++ b/program/services.py @@ -847,6 +847,9 @@ def get_timerange_timeslot_entries( if not include_virtual: return [make_timeslot_entry(timeslot=timeslot) for timeslot in timeslots] + if timeslots is None: + return [] + timeslot_entries = [] # gap before the first timeslot first_timeslot = timeslots.first() -- GitLab