##// END OF EJS Templates
handle deprecated files redirect on /notebooks
Min RK -
Show More
@@ -26,7 +26,7 b' class NotebookHandler(IPythonHandler):'
26 26 try:
27 27 model = cm.get(path, content=False)
28 28 except web.HTTPError as e:
29 if e.code == 404 and 'files' in path.split('/'):
29 if e.status_code == 404 and 'files' in path.split('/'):
30 30 # 404, but '/files/' in URL, let FilesRedirect take care of it
31 31 return FilesRedirectHandler.get(self, path)
32 32 else:
General Comments 0
You need to be logged in to leave comments. Login now