fix TypeError when updates == None
parent
26b2fea755
commit
ef4be74fd1
|
@ -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 New Issue