Skip to content

Commit f4ea601

Browse files
committed
Or this
1 parent 3ad7846 commit f4ea601

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/classes/notification.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ def render_subject(self):
4141
if self.submission.title is not None:
4242
bldr.append(": ")
4343

44+
4445
characters_available = 85 - utils.bldr_length(bldr)
4546
if len(self.submission.title.encode('utf-8')) > characters_available:
46-
bldr.append(self.submission.title[:characters_available-3])
47+
bldr.append(self.submission.title.encode('utf-8')[:characters_available-3].decode('utf-8', 'ignore'))
4748
bldr.append("...")
4849
else:
4950
bldr.append(self.submission.title)

0 commit comments

Comments
 (0)