From 3986104a20cf7a1ab3be02bdb03ad743267bd277 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 13:53:27 +0200 Subject: [PATCH] provider/scim: Fix exception handling for missing ServiceProviderConfig (cherry-pick #10322) (#10335) provider/scim: Fix exception handling for missing ServiceProviderConfig (#10322) Co-authored-by: Michael Poutre --- authentik/providers/scim/clients/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/providers/scim/clients/base.py b/authentik/providers/scim/clients/base.py index 19d55a4dfe..d6d20f1e37 100644 --- a/authentik/providers/scim/clients/base.py +++ b/authentik/providers/scim/clients/base.py @@ -89,6 +89,6 @@ class SCIMClient[TModel: "Model", TConnection: "Model", TSchema: "BaseModel"]( return ServiceProviderConfiguration.model_validate( self._request("GET", "/ServiceProviderConfig") ) - except (ValidationError, SCIMRequestException) as exc: + except (ValidationError, SCIMRequestException, NotFoundSyncException) as exc: self.logger.warning("failed to get ServiceProviderConfig", exc=exc) return default_config