mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-01 00:17:47 +03:00 
			
		
		
		
	Make RPCError class picklable (#751)
This commit is contained in:
		
							parent
							
								
									414fec91f1
								
							
						
					
					
						commit
						bd1b0ecdb4
					
				|  | @ -3,6 +3,9 @@ class RPCError(Exception): | |||
|     code = None | ||||
|     message = None | ||||
| 
 | ||||
|     def __reduce__(self): | ||||
|         return type(self), () | ||||
| 
 | ||||
| 
 | ||||
| class InvalidDCError(RPCError): | ||||
|     """ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user