Skip to content

Commit

Permalink
qapi/parser.py: assert member.info is present in connect_member
Browse files Browse the repository at this point in the history
Signed-off-by: John Snow <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
Message-ID: <[email protected]>
  • Loading branch information
jnsnow authored and Markus Armbruster committed Apr 24, 2024
1 parent 7c6e446 commit d5e2f3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/qapi/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ def append_line(self, line: str) -> None:

def connect_member(self, member: 'QAPISchemaMember') -> None:
if member.name not in self.args:
assert member.info
if self.symbol not in member.info.pragma.documentation_exceptions:
raise QAPISemError(member.info,
"%s '%s' lacks documentation"
Expand Down

0 comments on commit d5e2f3d

Please sign in to comment.