Skip to content

Commit

Permalink
If we don't have a schedule just say it's not active.
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Apr 23, 2024
1 parent 270e742 commit 3074532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/appointment/routes/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3074532

Please sign in to comment.