diff --git a/authentik/core/api/applications.py b/authentik/core/api/applications.py index dcbb41017..68101e799 100644 --- a/authentik/core/api/applications.py +++ b/authentik/core/api/applications.py @@ -56,7 +56,11 @@ class ApplicationSerializer(ModelSerializer): if isinstance(user, SimpleLazyObject): user._setup() user = user._wrapped - return url % user.__dict__ + try: + return url % user.__dict__ + except ValueError as exc: + LOGGER.warning("Failed to format launch url", exc=exc) + return url class Meta: