fix TypeError when updates == None
This commit is contained in:
parent
25bfe8e838
commit
823df7b04a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue