mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +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