Skip to content

Commit

Permalink
Merge pull request #45 from awoods/fixity-check-typo
Browse files Browse the repository at this point in the history
Fix typo in validator.py that produced imprecise output message
  • Loading branch information
zimeon committed Apr 18, 2021
2 parents a7e236f + b5632d4 commit e6e6fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocfl/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def validate_content(self, inventory, version_dirs, prior_manifest_digests):
for filepath in inventory['fixity'][digest_algorithm][digest]:
content_digest = file_digest(filepath, digest_type=digest_algorithm, pyfs=self.obj_fs)
if content_digest != normalized_digest(digest, digest_type=digest_algorithm):
self.log.error('E093', where='root', digest_algorith=digest_algorithm, digest=digest, content_path=filepath, content_digest=content_digest)
self.log.error('E093', where='root', digest_algorithm=digest_algorithm, digest=digest, content_path=filepath, content_digest=content_digest)
# Anything left in files_seen is not mentioned in the inventory
if len(files_seen) > 0:
self.log.error('E023b', where='root', extra_files=', '.join(sorted(files_seen)))
Expand Down

0 comments on commit e6e6fdc

Please sign in to comment.