Make RPCError class picklable (#751)

This commit is contained in:
vegeta1k95 2018-04-08 17:48:55 +03:00 committed by Lonami
parent 414fec91f1
commit bd1b0ecdb4

View File

@ -3,6 +3,9 @@ class RPCError(Exception):
code = None
message = None
def __reduce__(self):
return type(self), ()
class InvalidDCError(RPCError):
"""