fix TypeError when updates == None

This commit is contained in:
b3yond 2018-09-14 19:59:45 +02:00
parent 25bfe8e838
commit 823df7b04a

View file

@ -17,6 +17,8 @@ class TelegramBot(Bot):
except TypeError:
updates = tb.get_updates().wait()
reports = []
if updates == None:
return reports
for update in updates:
if update == 404:
return reports