Skip to content

Commit fd63972

Browse files
committed
Small bug fix
1 parent 6e05449 commit fd63972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def format_preview(messages: typing.List[typing.Dict[str, typing.Any]]):
7979
if message.get("type") in ("note", "internal"):
8080
continue
8181
author = message["author"]
82-
content = message["content"].replace("\n", " ")
82+
content = str(message["content"]).replace("\n", " ")
8383
name = author["name"] + "#" + str(author["discriminator"])
8484
prefix = "[M]" if author["mod"] else "[R]"
8585
out += truncate(f"`{prefix} {name}:` {content}", max=75) + "\n"

0 commit comments

Comments
 (0)