mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +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
|
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