We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e542728 commit fae2673Copy full SHA for fae2673
contrib/devtools/check-rpc-mappings.py
@@ -63,7 +63,7 @@ def process_commands(fname):
63
else:
64
args = []
65
cmds.append(RPCCommand(name, args))
66
- assert not in_rpcs, "Something went wrong with parsing the C++ file: update the regexps"
+ assert not in_rpcs and cmds, "Something went wrong with parsing the C++ file: update the regexps"
67
return cmds
68
69
def process_mapping(fname):
@@ -86,7 +86,7 @@ def process_mapping(fname):
86
idx = int(m.group(2))
87
argname = parse_string(m.group(3))
88
cmds.append((name, idx, argname))
89
- assert not in_rpcs
+ assert not in_rpcs and cmds
90
91
92
def main():
0 commit comments