Skip to content

Commit 82bea23

Browse files
committed
description shows as a short text in user story kanban card
1 parent 77dec6c commit 82bea23

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

project_scrum/project_scrum.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ class project_user_stories(models.Model):
102102

103103
def _conv_html2text(self): # method that return a short text from description of user story
104104
for d in self:
105-
d.description_short = BeautifulSoup(d.description or '').p.get_text()
105+
try:
106+
d.description_short = BeautifulSoup(d.description or '').p.get_text()
107+
except:
108+
pass
106109

107110
def _task_count(self): # method that calculate how many tasks exist
108111
for p in self:

0 commit comments

Comments
 (0)