diff --git a/program/services.py b/program/services.py index 9bd164f7306386e11ad8a9f9063825a46ebdf140..8fc245c5607f3c35462fd57609d83d9b17a814e9 100644 --- a/program/services.py +++ b/program/services.py @@ -825,7 +825,9 @@ def make_virtual_timeslot_entry(*, gap_start: datetime, gap_end: datetime) -> Vi "start": gap_start.strftime("%Y-%m-%dT%H:%M:%S%z"), } else: - raise NotFound("Radio settings with fallbacks not found.") + raise NotFound( + detail=_("Radio settings with fallbacks not found."), code="radio_settings-not_found" + ) def get_timerange_timeslot_entries(