mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
changing OSError to be AttributeError (for windows)
This commit is contained in:
parent
1d01627cec
commit
349a7f062e
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user