From 80f218a6bf401e8ae77d1b683c96487438530195 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 17 Feb 2022 18:23:11 +0100 Subject: [PATCH] core: also handle TypeError for invalid app URL formatting Signed-off-by: Jens Langhammer --- authentik/core/api/applications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/core/api/applications.py b/authentik/core/api/applications.py index 68101e799..9506b25fe 100644 --- a/authentik/core/api/applications.py +++ b/authentik/core/api/applications.py @@ -58,7 +58,7 @@ class ApplicationSerializer(ModelSerializer): user = user._wrapped try: return url % user.__dict__ - except ValueError as exc: + except (ValueError, TypeError) as exc: LOGGER.warning("Failed to format launch url", exc=exc) return url