mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 01:47:27 +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():
 | 
			
		||||
                    self._sender.receive(update_state=self.updates)
 | 
			
		||||
 | 
			
		||||
        except TimeoutError:
 | 
			
		||||
            pass  # We will just retry
 | 
			
		||||
 | 
			
		||||
        except ConnectionResetError:
 | 
			
		||||
            self._logger.debug('Server disconnected us. Reconnecting and '
 | 
			
		||||
                               'resending request...')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user