Skip to content

Commit

Permalink
Merge pull request #3053 from minrk/save-script-fix
Browse files Browse the repository at this point in the history
fix save-script deprecation
  • Loading branch information
takluyver authored Nov 17, 2017
2 parents b3b8106 + 1eb9700 commit ba33c33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion notebook/services/contents/filemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def _default_root_dir(self):
save_script = Bool(False, config=True, help='DEPRECATED, use post_save_hook. Will be removed in Notebook 5.0')

@observe('save_script')
def _update_save_script(self):
def _update_save_script(self, change):
if not change['new']:
return
self.log.warning("""
`--script` is deprecated and will be removed in notebook 5.0.
Expand Down

0 comments on commit ba33c33

Please sign in to comment.