Skip to content

Commit 17c551e

Browse files
Carreauminrk
authored andcommitted
Backport PR #1871: Allow None for post_save_hook
See gh-1868 We're also discussing changes to traitlets that might avoid the need for this, in ipython/traitlets 342. But this is the simple fix. Signed-off-by: Min RK <[email protected]>
1 parent 8d3c7fc commit 17c551e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/services/contents/filemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _save_script_changed(self):
8383

8484
self.post_save_hook = _post_save_script
8585

86-
post_save_hook = Any(None, config=True,
86+
post_save_hook = Any(None, config=True, allow_none=True,
8787
help="""Python callable or importstring thereof
8888
8989
to be called on the path of a file just saved.

0 commit comments

Comments
 (0)