handle missing pas hub credentials

This commit is contained in:
Daniel Roth 2026-03-31 08:25:56 +00:00
parent f68ff1fca6
commit 9075cac3aa

View file

@ -171,6 +171,9 @@ def handler(event: Mapping[str, Any], context: Any) -> None:
pas_hub_email = settings.PASHUB_EMAIL
pas_hub_password = settings.PASHUB_PASSWORD
if (not pas_hub_email) or (not pas_hub_password):
raise ValueError("Pas Hub credentials not provided")
pashub_client = get_pashub_client(pas_hub_email, pas_hub_password)
sharepoint_client = DomnaSharepointClient(