From 146787f6658297588940291fe0c567759686763f Mon Sep 17 00:00:00 2001 From: Ske Date: Tue, 9 Apr 2019 22:11:47 +0200 Subject: [PATCH] Fix short member list rendering with prefix/suffixless members --- src/pluralkit/bot/embeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pluralkit/bot/embeds.py b/src/pluralkit/bot/embeds.py index 5fec9540..fadd1ec3 100644 --- a/src/pluralkit/bot/embeds.py +++ b/src/pluralkit/bot/embeds.py @@ -243,7 +243,7 @@ def member_list_short(system: System, all_members: List[Member], current_page: i desc = "" for member in all_members[current_page*page_size:current_page*page_size+page_size]: if member.prefix or member.suffix: - desc += "[`{}`] {} *({}text{})*\n".format(member.hid, member.name, member.prefix, member.suffix) + desc += "[`{}`] {} *({}text{})*\n".format(member.hid, member.name, member.prefix or "", member.suffix or "") else: desc += "[`{}`] {}\n".format(member.hid, member.name) embed.description = desc