Skip to content

Commit fae2673

Browse files
author
MarcoFalke
committed
qa: check-rpc-mapping must not run on empty lists
1 parent e542728 commit fae2673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/devtools/check-rpc-mappings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def process_commands(fname):
6363
else:
6464
args = []
6565
cmds.append(RPCCommand(name, args))
66-
assert not in_rpcs, "Something went wrong with parsing the C++ file: update the regexps"
66+
assert not in_rpcs and cmds, "Something went wrong with parsing the C++ file: update the regexps"
6767
return cmds
6868

6969
def process_mapping(fname):
@@ -86,7 +86,7 @@ def process_mapping(fname):
8686
idx = int(m.group(2))
8787
argname = parse_string(m.group(3))
8888
cmds.append((name, idx, argname))
89-
assert not in_rpcs
89+
assert not in_rpcs and cmds
9090
return cmds
9191

9292
def main():

0 commit comments

Comments
 (0)