fix(calendar): improve friendly error message when regensburg calendar is not configured
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user