diff --git a/consistency_checks.py b/consistency_checks.py index 843e648..2c7c8fc 100644 --- a/consistency_checks.py +++ b/consistency_checks.py @@ -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}")