uga-libraries / hub-monitoring

Scripts for summarizing and validating content on the Digital Production Hub, the UGA Libraries' centralized storage for digital objects that are not suitable for our digital preservation system.
Creative Commons Attribution Share Alike 4.0 International
1 stars 0 forks source link

Error handling for generating md5 #74

Closed amhanson9 closed 2 months ago

amhanson9 commented 4 months ago

In validate_manifest(), had a FileNotFoundError on several files when attempting to read in order to calculate the md5. Add error handling to assign 'FileNotFoundError-cannot-calculate-md5' as the md5, so that the error is part of the manifest log. Also do this in validate_bag_manifest().

amhanson9 commented 4 months ago

@emkaser this should be working. I couldn't test it fully since I can't replicate the error with how much current computer setup handles long paths. But the try/except logic was in place before then to let the full test pass, and I confirmed having the MD5 be FileNotFound.... works as expected with merging. To test with the real data, use collection ms4472.