From 4ba890277eabeacf4625a7d6d945c55e45a549f9 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 1 Apr 2019 14:14:27 +0300 Subject: [PATCH] fix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f374f7b..802bb66 100755 --- a/main.py +++ b/main.py @@ -147,7 +147,7 @@ def _sign_text(text, m: Message, limit): # sign = f'\n\n____________\n' \ # f'by {escape(m.from_user.full_name)}' subs = conn.root.subscribers - random_user = subs[random.choice(subs.keys())] + random_user = subs[random.choice(list(subs.keys()))] sign = f'\n\n____________\n' \ f'by {escape(random_user.name)}'