From 3ebbb79bb5e5d1a9f7a9bb5d7228ec6eb9d59d42 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 22 Dec 2022 01:01:26 +0000 Subject: [PATCH] Deal with initially-null summary Fixes #234 --- users/views/settings/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/views/settings/profile.py b/users/views/settings/profile.py index 2e53abf..599d653 100644 --- a/users/views/settings/profile.py +++ b/users/views/settings/profile.py @@ -52,7 +52,7 @@ class ProfilePage(FormView): identity = self.request.identity return { "name": identity.name, - "summary": html_to_plaintext(identity.summary), + "summary": html_to_plaintext(identity.summary) if identity.summary else "", "icon": identity.icon and identity.icon.url, "image": identity.image and identity.image.url, "discoverable": identity.discoverable,