fix(calendar): improve friendly error message when regensburg calendar is not configured

This commit is contained in:
Moritz Graf
2026-09-15 22:03:54 +02:00
parent 9a857ac23b
commit 309f4e4856
@@ -91,8 +91,8 @@ def resolve_calendar_id(calendar_identifier: Optional[str] = None) -> str:
if ident_lower in ("regensburg", "rgb", "regensburg-und-mehr", "regensburg_und_mehr", "events", "stadt"):
if not CALENDAR_ID_REGENSBURG:
raise ValueError(
"CALENDAR_ID_REGENSBURG is not configured. Please set the environment variable "
"CALENDAR_ID_REGENSBURG to the Google Calendar ID of the Regensburg calendar."
"Der Regensburg- / Event-Kalender ist noch nicht freigeschaltet (Berechtigungen ausstehend). "
"Bitte nutze vorerst den Familienkalender ('family')."
)
return CALENDAR_ID_REGENSBURG