Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -290,6 +290,12 @@ class RpcConnection(object):
ThreadedRpcCaller(message, self, func).start()
else:
RpcCaller(message, self, func).start()
else:
self.error(
message['id'],
'NameError',
"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'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment