Try except for user id string error
This commit is contained in:
parent
09e56d2309
commit
f892440b2e
@ -68,8 +68,13 @@ def update_crontab(p_my_handler):
|
|||||||
|
|
||||||
for element in all_users:
|
for element in all_users:
|
||||||
if element["cron"] != '' and element["telegram_user_id"] != '':
|
if element["cron"] != '' and element["telegram_user_id"] != '':
|
||||||
user_ids.append(int(element["telegram_user_id"]))
|
try:
|
||||||
user_crontab.append(str(element["cron"]))
|
user_ids.append(int(element["telegram_user_id"]))
|
||||||
|
try:
|
||||||
|
user_crontab.append(str(element["cron"]))
|
||||||
|
except: continue
|
||||||
|
except: continue
|
||||||
|
|
||||||
|
|
||||||
print(user_ids)
|
print(user_ids)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user