Skip to content

Commit

Permalink
Merge pull request #30 from openownership/consistency_check_fix_typo
Browse files Browse the repository at this point in the history
Fix call to private method
  • Loading branch information
radix0000 committed Jun 27, 2023
2 parents fe6b509 + 7562048 commit fc95d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consistency_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _check_statement(self, statement):
if statement['statementType'] == "personStatement":
self._perform_check('personType' in statement, f"Missing BODS field: No personType in person statement: {statement}")
if statement['personType'] in ('anonymousPerson', 'unknownPerson'):
self.perform_check('reason' in statement['unspecifiedPersonDetails'], \
self._perform_check('reason' in statement['unspecifiedPersonDetails'], \
f"Missing BODS field: No reason for person statement with {statement['personType']} personType: {statement}")
elif statement['statementType'] == "entityStatement":
self._perform_check('entityType' in statement, f"Missing BODS field: No entityType in entity statement: {statement}")
Expand Down

0 comments on commit fc95d70

Please sign in to comment.