fixed: support None

master
JimZhang 10 months ago
parent 53f375743e
commit cf623ebab5

@ -42,14 +42,10 @@ RPC_ERROR_CODE_INTERNAL = -32603
def serialize(data): def serialize(data):
if data is None:
return None
return msgpack.dumps(data) return msgpack.dumps(data)
def deserialize(data): def deserialize(data):
if data is None:
return None
return msgpack.unpackb(data) return msgpack.unpackb(data)

Loading…
Cancel
Save