refactor: clean

This commit is contained in:
Swann Martinez
2019-04-26 17:18:55 +02:00
parent cbf24384d6
commit 951af9dae4
4 changed files with 4 additions and 3 deletions

View File

@ -54,7 +54,7 @@ class RCFMessage(object):
@classmethod
def recv(cls, socket):
"""Reads key-value message from socket, returns new kvmsg instance."""
key, id, body = socket.recv_multipart(zmq.DONTWAIT)
key, id, body = socket.recv_multipart()
key = key.decode() if key else None
id = id if id else None
body = umsgpack.unpackb(body) if body else None