Ignore TimeoutError when invoking a request

This commit is contained in:
Lonami Exo 2017-09-17 16:32:51 +02:00
parent 2f0f6d4591
commit 76b7420b63

View File

@ -322,6 +322,9 @@ class TelegramBareClient:
while not request.confirm_received.is_set(): while not request.confirm_received.is_set():
self._sender.receive(update_state=self.updates) self._sender.receive(update_state=self.updates)
except TimeoutError:
pass # We will just retry
except ConnectionResetError: except ConnectionResetError:
self._logger.debug('Server disconnected us. Reconnecting and ' self._logger.debug('Server disconnected us. Reconnecting and '
'resending request...') 'resending request...')