mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-09 08:00:53 +03:00
Remove sleep on ServerError as per @danog's recommendation
This commit is contained in:
parent
33dbac6350
commit
a5ab49c707
|
@ -497,11 +497,10 @@ class TelegramBareClient:
|
||||||
sleep(0.1) # Retry forever until we can send the request
|
sleep(0.1) # Retry forever until we can send the request
|
||||||
|
|
||||||
except ServerError as e:
|
except ServerError as e:
|
||||||
# Telegram is having some issues, sleep a tiny bit and retry
|
# Telegram is having some issues, just retry
|
||||||
self._logger.debug(
|
self._logger.debug(
|
||||||
'[ERROR] Telegram is having some internal issues', e
|
'[ERROR] Telegram is having some internal issues', e
|
||||||
)
|
)
|
||||||
sleep(2)
|
|
||||||
|
|
||||||
except FloodWaitError:
|
except FloodWaitError:
|
||||||
sender.disconnect()
|
sender.disconnect()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user