Update notebook/services/contents/filemanager.py

Co-authored-by: Min RK <benjaminrk@gmail.com>
This commit is contained in:
Ryan 2022-05-25 12:36:32 -04:00 committed by GitHub
parent 1c3d7a60cd
commit cb3dc22f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,7 @@ class FileContentsManager(FileManagerMixin, ContentsManager):
four_o_four = "file or directory does not exist: %r" % path
if is_hidden(os_path, self.root_dir) and not self.allow_hidden:
self.log.info("Refusing to serve hidden file or file in hidden directory %r, via 404 Error", os_path)
self.log.info("Refusing to serve hidden file or directory %r, via 404 Error", os_path)
raise web.HTTPError(404, four_o_four)
try: