From d1200d0fa98b5e32ce2a75eeba278f7674a5402c Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 17 Sep 2024 11:48:49 +0530 Subject: [PATCH] fix: profile page empty bio error --- lms/www/lms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lms/www/lms.py b/lms/www/lms.py index ca95db48..67d800ae 100644 --- a/lms/www/lms.py +++ b/lms/www/lms.py @@ -148,8 +148,9 @@ def get_meta(app_path): as_dict=True, ) - soup = BeautifulSoup(user.bio, "html.parser") - user.bio = soup.get_text() + if user.bio: + soup = BeautifulSoup(user.bio, "html.parser") + user.bio = soup.get_text() return { "title": user.full_name,