Fix catch_up may use None state

This commit is contained in:
Lonami Exo 2018-05-17 10:42:20 +02:00
parent 89182ea010
commit a8be4bb615

View File

@ -2427,6 +2427,9 @@ class TelegramClient(TelegramBareClient):
def catch_up(self):
state = self.session.get_update_state(0)
if not state:
return
self.session.catching_up = True
try:
while True: