mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-07 13:34:59 +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."""
|
"""Base class for all Remote Procedure Call errors."""
|
||||||
code = None
|
code = None
|
||||||
message = None
|
message = None
|
||||||
|
def __reduce__(self):
|
||||||
|
return type(self), ()
|
||||||
|
|
||||||
|
|
||||||
class InvalidDCError(RPCError):
|
class InvalidDCError(RPCError):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user