Make RPCError class picklable

This commit is contained in:
vegeta1k95 2018-04-08 17:46:48 +03:00 committed by GitHub
parent 414fec91f1
commit 55f4e4b1c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):