Commit e78667fe authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

rpc._RpcClientBase: Add check for number of arguments

Just an additional check, useful in unittests.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 120e7e77
......@@ -461,6 +461,9 @@ class _RpcClientBase:
req_resolver_opts = resolver_opts
if len(args) != len(argdefs):
raise errors.ProgrammerError("Number of passed arguments doesn't match")
enc_args = map(self._encoder, zip(map(compat.snd, argdefs), args))
if prep_fn is None:
# for a no-op prep_fn, we serialise the body once, and then we
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