From 9075cac3aa26d6c5715b041ae98a5ed6294a5e8f Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 31 Mar 2026 08:25:56 +0000 Subject: [PATCH] handle missing pas hub credentials --- backend/pashub_fetcher/handler/handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/pashub_fetcher/handler/handler.py b/backend/pashub_fetcher/handler/handler.py index a27f49bc..df7bb9dc 100644 --- a/backend/pashub_fetcher/handler/handler.py +++ b/backend/pashub_fetcher/handler/handler.py @@ -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(