Allow None for post_save_hook

See gh-1868
This commit is contained in:
Thomas Kluyver 2016-11-03 09:43:13 -07:00
parent c0928d856e
commit ee4b9ce598

View File

@ -93,7 +93,7 @@ class FileContentsManager(FileManagerMixin, ContentsManager):
self.post_save_hook = _post_save_script
post_save_hook = Any(None, config=True,
post_save_hook = Any(None, config=True, allow_none=True,
help="""Python callable or importstring thereof
to be called on the path of a file just saved.