mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-31 16:07:44 +03:00 
			
		
		
		
	Except expected ConnectionError in the receive loop
This commit is contained in:
		
							parent
							
								
									0d8b15a109
								
							
						
					
					
						commit
						b0e587c03d
					
				|  | @ -163,7 +163,7 @@ class Connection(abc.ABC): | ||||||
|         except asyncio.CancelledError: |         except asyncio.CancelledError: | ||||||
|             pass |             pass | ||||||
|         except Exception as e: |         except Exception as e: | ||||||
|             if isinstance(e, asyncio.IncompleteReadError): |             if isinstance(e, (ConnectionError, asyncio.IncompleteReadError)): | ||||||
|                 msg = 'The server closed the connection' |                 msg = 'The server closed the connection' | ||||||
|                 __log__.info(msg) |                 __log__.info(msg) | ||||||
|             elif isinstance(e, InvalidChecksumError): |             elif isinstance(e, InvalidChecksumError): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user