fix TypeError when updates == None

master
b3yond 2018-09-14 19:59:45 +02:00
parent 26b2fea755
commit ef4be74fd1
1 changed files with 2 additions and 0 deletions

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