From 30745325500f62717eb814e4cff58de30e9d66bf Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Tue, 23 Apr 2024 11:27:35 -0700 Subject: [PATCH] If we don't have a schedule just say it's not active. --- backend/src/appointment/routes/schedule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/appointment/routes/schedule.py b/backend/src/appointment/routes/schedule.py index b07b40fe3..4563457c8 100644 --- a/backend/src/appointment/routes/schedule.py +++ b/backend/src/appointment/routes/schedule.py @@ -102,7 +102,7 @@ def read_schedule_availabilities( try: schedule = schedules[0] # for now we only process the first existing schedule except IndexError: - raise validation.ScheduleNotFoundException() + raise validation.ScheduleNotActive() # check if schedule is enabled if not schedule.active: