From 86dca85890551fe2e11694a04e771d775cf8134f Mon Sep 17 00:00:00 2001 From: Min RK Date: Sat, 27 Dec 2014 14:23:49 -0800 Subject: [PATCH] handle deprecated files redirect on /notebooks --- IPython/html/notebook/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/notebook/handlers.py b/IPython/html/notebook/handlers.py index c41cb6377..1725b831a 100644 --- a/IPython/html/notebook/handlers.py +++ b/IPython/html/notebook/handlers.py @@ -26,7 +26,7 @@ class NotebookHandler(IPythonHandler): try: model = cm.get(path, content=False) except web.HTTPError as e: - if e.code == 404 and 'files' in path.split('/'): + if e.status_code == 404 and 'files' in path.split('/'): # 404, but '/files/' in URL, let FilesRedirect take care of it return FilesRedirectHandler.get(self, path) else: