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