mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Remove sleep on ServerError as per @danog's recommendation
This commit is contained in:
@@ -497,11 +497,10 @@ class TelegramBareClient:
|
||||
sleep(0.1) # Retry forever until we can send the request
|
||||
|
||||
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(
|
||||
'[ERROR] Telegram is having some internal issues', e
|
||||
)
|
||||
sleep(2)
|
||||
|
||||
except FloodWaitError:
|
||||
sender.disconnect()
|
||||
|
Reference in New Issue
Block a user