From 349a7f062e322ab5528f225769a4abc0ea13d95d Mon Sep 17 00:00:00 2001 From: Vivian Fang Date: Sat, 20 Feb 2016 12:40:41 -0800 Subject: [PATCH] changing OSError to be AttributeError (for windows) --- notebook/notebookapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index 73270e710..96646cbe6 100644 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -1113,8 +1113,8 @@ class NotebookApp(JupyterApp): if os.geteuid() == 0 and not self.allow_root: self.log.critical("Running as root is forbidden. Use --allow-root to bypass.") self.exit(1) - except OSError as e: - pass + except AttributeError as e: + pass #need to add Windows super(NotebookApp, self).start()