mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 09:57:29 +03:00 
			
		
		
		
	Retry on TimedOutError (#4255)
This commit is contained in:
		
							parent
							
								
									ddc9bef503
								
							
						
					
					
						commit
						cf3bc71e1d
					
				| 
						 | 
					@ -89,6 +89,7 @@ class UserMethods:
 | 
				
			||||||
                    return result
 | 
					                    return result
 | 
				
			||||||
            except (errors.ServerError, errors.RpcCallFailError,
 | 
					            except (errors.ServerError, errors.RpcCallFailError,
 | 
				
			||||||
                    errors.RpcMcgetFailError, errors.InterdcCallErrorError,
 | 
					                    errors.RpcMcgetFailError, errors.InterdcCallErrorError,
 | 
				
			||||||
 | 
					                    errors.TimedOutError,
 | 
				
			||||||
                    errors.InterdcCallRichErrorError) as e:
 | 
					                    errors.InterdcCallRichErrorError) as e:
 | 
				
			||||||
                last_error = e
 | 
					                last_error = e
 | 
				
			||||||
                self._log[__name__].warning(
 | 
					                self._log[__name__].warning(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user