forked from ticketfrei/ticketfrei
fix TypeError when updates == None
This commit is contained in:
parent
25bfe8e838
commit
823df7b04a
|
|
@ -17,6 +17,8 @@ class TelegramBot(Bot):
|
||||||
except TypeError:
|
except TypeError:
|
||||||
updates = tb.get_updates().wait()
|
updates = tb.get_updates().wait()
|
||||||
reports = []
|
reports = []
|
||||||
|
if updates == None:
|
||||||
|
return reports
|
||||||
for update in updates:
|
for update in updates:
|
||||||
if update == 404:
|
if update == 404:
|
||||||
return reports
|
return reports
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue