From 6f0ead5850b1ea2ca14ec6173cb4f1bcab7dc342 Mon Sep 17 00:00:00 2001 From: Len Date: Sun, 23 Feb 2025 01:48:07 -0800 Subject: [PATCH] Fix error with subscripting sets --- templates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates.py b/templates.py index 643a38b..099d673 100644 --- a/templates.py +++ b/templates.py @@ -9,6 +9,8 @@ MUMBLE_URL = os.getenv('MUMBLE_BOT_MUMBLE_URL') def fmt_list(users: Set[str], bold=True): if bold: users = [f'*{user}*' for user in users] + else: + users = list(users) if len(users) == 1: return users[0] return ', '.join(users[:-1]) + f' and {users[-1]}'