mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
handle missing pas hub credentials
This commit is contained in:
parent
f68ff1fca6
commit
9075cac3aa
1 changed files with 3 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue