Skip to content

Commit ba33c33

Browse files
authored
Merge pull request #3053 from minrk/save-script-fix
fix save-script deprecation
2 parents b3b8106 + 1eb9700 commit ba33c33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

notebook/services/contents/filemanager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def _default_root_dir(self):
8080
save_script = Bool(False, config=True, help='DEPRECATED, use post_save_hook. Will be removed in Notebook 5.0')
8181

8282
@observe('save_script')
83-
def _update_save_script(self):
83+
def _update_save_script(self, change):
84+
if not change['new']:
85+
return
8486
self.log.warning("""
8587
`--script` is deprecated and will be removed in notebook 5.0.
8688

0 commit comments

Comments
 (0)