def _validate_profile(self, bag):
        """
        Validate against OCRD BagIt profile (bag-info fields, algos etc)
        """
        if not self.profile_validator.validate(bag):
            raise Exception(str(self.profile_validator.report))
def _validate_profile ( self , bag ) : if not self . profile_validator . validate ( bag ) : raise Exception ( str ( self . profile_validator . report ) )
Validate against OCRD BagIt profile (bag-info fields, algos etc)