Commit cd79338e authored by Antoine Millet's avatar Antoine Millet
Browse files

Now raises an NameError exception when a None handler is attached to the connection.

parent 622a60ea
......@@ -290,6 +290,12 @@ class RpcConnection(object):
ThreadedRpcCaller(message, self, func).start()
RpcCaller(message, self, func).start()
"remote name '%s' is not defined" % message['method'],
elif set(RpcConnection.RESPONSE_MESSAGE) <= set(message):
# Handle response message from the peer:
call = self._calls.get(message['id'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment