mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 05:04:33 +03:00
Ignore TimeoutError when invoking a request
This commit is contained in:
parent
2f0f6d4591
commit
76b7420b63
|
@ -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...')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user