From 9e8782f82855f2cff6ce0cc4e6d89505c6d66ef7 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sun, 3 Mar 2019 21:53:01 +0300 Subject: [PATCH] fix get users list script --- get_users_list.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/get_users_list.py b/get_users_list.py index b0a99ae..2643a37 100755 --- a/get_users_list.py +++ b/get_users_list.py @@ -20,5 +20,7 @@ for sub in subs: for i in range(0, len(messages), 10): - sl = messages[i*10:i*10+10] + sl = messages[i:i+10] + if not sl: + continue bot.send_message(98934915, '\n'.join(sl), parse_mode='html')