Skip to content

Commit fb47c20

Browse files
committed
Reverting the change done to manager.py. The check will have to
be handled as part of nbformat.
1 parent 33d9a95 commit fb47c20

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

notebook/services/contents/manager.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,8 @@ def check_and_sign(self, nb, path=''):
440440
path : string
441441
The notebook's path (for logging)
442442
"""
443-
# Warning: The check_cells method removes the
444-
# "trusted"" key from the cells' metadata
445443
if self.notary.check_cells(nb):
446-
# We're checking the signature *after* the
447-
# trusted keys have been removed
448-
if not self.notary.check_signature(nb):
449-
self.notary.sign(nb)
444+
self.notary.sign(nb)
450445
else:
451446
self.log.warning("Notebook %s is not trusted", path)
452447

0 commit comments

Comments
 (0)