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: