Show More
@@ -26,7 +26,7 b' class NotebookHandler(IPythonHandler):' | |||||
26 | try: |
|
26 | try: | |
27 | model = cm.get(path, content=False) |
|
27 | model = cm.get(path, content=False) | |
28 | except web.HTTPError as e: |
|
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 | # 404, but '/files/' in URL, let FilesRedirect take care of it |
|
30 | # 404, but '/files/' in URL, let FilesRedirect take care of it | |
31 | return FilesRedirectHandler.get(self, path) |
|
31 | return FilesRedirectHandler.get(self, path) | |
32 | else: |
|
32 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now