diff --git a/nbrmd/contentsmanager.py b/nbrmd/contentsmanager.py index cafd8eeff..5895be16c 100644 --- a/nbrmd/contentsmanager.py +++ b/nbrmd/contentsmanager.py @@ -106,17 +106,10 @@ def _read_notebook(self, os_path, as_version=4, as_version=as_version, load_alternative_format=False) - # We store in the metadata the alternative and sourceonly formats - trusted = self.notary.check_signature(nb) - nb.metadata['nbrmd_formats'] = nbrmd_formats - nb.metadata['nbrmd_sourceonly_format'] = source_format - if nb_outputs is not None: combine.combine_inputs_with_outputs(nb, nb_outputs) - trusted = self.notary.check_signature(nb_outputs) - - if trusted: - self.notary.sign(nb) + if self.notary.check_signature(nb_outputs): + self.notary.sign(nb) return nb