mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 20:50:22 +03:00
Make RPCError class picklable
This commit is contained in:
parent
414fec91f1
commit
55f4e4b1c2
|
@ -2,6 +2,8 @@ class RPCError(Exception):
|
|||
"""Base class for all Remote Procedure Call errors."""
|
||||
code = None
|
||||
message = None
|
||||
def __reduce__(self):
|
||||
return type(self), ()
|
||||
|
||||
|
||||
class InvalidDCError(RPCError):
|
||||
|
|
Loading…
Reference in New Issue
Block a user