mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-31 16:07:44 +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 | ||||
| 
 | ||||
|         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() | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user